+ 5
what is class attribute ?
someone describe me ?
2 Réponses
0
Every veritable in Java is object by default. And Java will create default contents for that. For example you can find the length of an array with yourArray.length() :D
- 1
Class attribute is used to create a custom data structure! In comparison to C, struct is used to create custom data structure in C! But in addition to struct, we can add methods in our class! Class is also used for encapsulation as it hides definition for how it has been implemented for external parties