+ 5

what is class attribute ?

someone describe me ?

26th Sep 2016, 2:45 AM
Anmol Agarwal
Anmol Agarwal - avatar
2 ответов
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
26th Sep 2016, 6:39 AM
MM1132
MM1132 - avatar
- 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
26th Sep 2016, 6:59 AM
Sijan Maharjan
Sijan Maharjan - avatar