+ 2

What does an Object means on Java?

25th Mar 2022, 9:35 AM
Eyy
3 Antworten
+ 3
Object means which can have different behaviour like mobile is an object which can play music, can call, can send messages etc.
25th Mar 2022, 9:52 AM
A͢J
A͢J - avatar
+ 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.
25th Mar 2022, 10:01 AM
Jayakrishna 🇮🇳