1.

What Is The Difference Between A Class And An Object?

Answer»

A class is a blue print on which OBJECTS are created. A class has code and behavior but an object has state and behavior. You cannot create an object WITHOUT creating a class to REPRESENT its structure. Class is also used to map an object in memory, in JAVA, JVM does that for you.

A class is a blue print on which objects are created. A class has code and behavior but an object has state and behavior. You cannot create an object without creating a class to represent its structure. Class is also used to map an object in memory, in Java, JVM does that for you.



Discussion

No Comment Found