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
Is ++ operator thread-safe in java?
What is the difference between conversation & casting?
Which list does not allow duplicates in java?
What is the difference between abstraction and encapsulation?
Can we override private methods?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
Define linked list and its features with signature?
Can interface be private in java?
What is sorting in java?
Can we clone singleton class in java?
how to create constants in java?
What is the difference between declaration and definition in java?
What is comparator in java?
How do you check if a number is a perfect square?
What are default methods ?