+ 2
What does an Object means on Java?
3 odpowiedzi
+ 3
Object means which can have different behaviour like mobile is an object which can play music, can call, can send messages etc.
+ 3
Instance of a class, through which you can access class properties.
A class is a blue print, an object is a real entity.
class ClassName{
//property1;
//property2(){.. }
...
}
ClassName object = new ClassName(); //object creation. .
object.property1 ; // data property accessing
object.property2(); // method property calling
It's a Sample pseudo code.. Not java code.
Go through lessons, for clearly understand.. If anything not understand then post about that specific topic or phrases.. So you may get clear , detail explanation...
Hope it help.