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 print an arraylist in java?
Is finalize() similar to a destructor?
What is the purpose of static keyword in java?
Difference between == and .equals() ?
whatis Home interface and Remoteinterface? with example?
Why destructor is not used in java?
State one difference between a template class and class template.
Explain the difference between abstraction and encapsulation.
What is a prefix function.write down a code to compute prefix function.
What is the use of join method?
How do you sort arraylist in descending order?
Is 0 an irrational number?
extending thread class or implementing runnable interface. Which is better? : Java thread
What are recursive functions? Give some examples?
Is array primitive data type in java?