what is difference between class and object?
Answer Posted / maurya
class is a totally logical perseption while we r making a
class we think only WHAT and HOW. but an object is fully
physical perseption when we create an object we get th
physical entity of class. object has its existance but a
class dont.
through WHAT of a class we define state ie. what should be
in my object and through HOW we define behavior of object
ie. how and what function perform on my object to change
its behavior.
an object is actually type of class.....!!
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Explain throw keyword in java?
Why is method overloading not possible by changing the return type in java?
Give any two differences between C++ and java.
What is default locale java?
If an object is garbage collected, can it become reachable again?
What is sortedmap in java?
What is string intern in java?
What does localhost mean?
What is loop in java?
What is the basic of java?
What is java in simple terms?
Explain the difference between a Thread and a Process.
What is thread start?
Explain about field hiding in java?
What is variable and rules of variable?