• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is my explaination right?  RSS feed

 
Greenhorn
Posts: 10
Firefox Browser Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you tell me in general what is class and attribute ?

If i have a box, then it should also bee clear that i have width, height, and depth.

Then i make it to program I have box for my class, so width, height, and depth for the attribute.
is this right? The class is box and attributes is what makes box?

Like if a car is class then tires, painting, lamp is the attributes?



This is a  Main Class to run the Above Java Class



Is my code have 1 class and 3 attributes??
 
Sheriff
Posts: 11494
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you have it right. Bagus, Manda!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!