Computer Science, asked by ruchi269, 11 months ago

What are the attributes to declare a class?

Answers

Answered by raj5682
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