Java Object and Class
In this training lesson we learn about Java Object and Class.
Object is real world entity that has state and behavior e.g. laptop, pen, fan etc.
classes are groups of objects that has common property and class function(behavior) is method.
A java class can contain:
- data member
- class and interface