What are the attributes to declare a class?
Answers
Answered by
1
Class attributes are attributes which are owned by the class itself. They will be shared by all the instances of the class. Therefore they have the same value for every instance. We define class attributes outside of all the methods, usually they are placed at the top, right below the class header.
Similar questions
Math,
5 months ago
Computer Science,
5 months ago
Math,
5 months ago
Computer Science,
11 months ago
History,
1 year ago
English,
1 year ago