what is difference between class and object?
Answer Posted / deen muhammad
I think a class is the superset of an object and object is
subset of a class.
A class contain so many objects but an object only belongs
to one class
example: A human being is a class while its body parts are
the objects of that class.
| Is This Answer Correct ? | 11 Yes | 8 No |
Post New Answer View All Answers
how to convert Java project into Maven ?
What is the difference between replace and replace all?
How do I compare two strings in word in java?
Is it safe to install java on my computer?
What are the important features of Java 10 release?
What are inner classes or non static nested classes in java?
Is space a char?
What is a map? What are the implementations of map?
How do you make a thread in java?
What is java in detail?
How do you clear an arraylist in java?
How is a structure different from array ?
What is variable declaration and definition?
What is double data type?
How can we find the actual size of an object on the heap?