Is class an Object? Is object a class?

Answer Posted / vasir

Class is not an object. An object is an entity that is
allocated memory during runtime to do certain operation
whereas Class is just a skeleton or representation of the
object. We say design a class and not create a class. We
can only design a class ( attributes and behaviour ).
In brief we can say class is a Type of an object.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use if instanceof keyword?

778


What is the difference between an abstract class and interface in java?

758


What are different types of arguments?

820


If a class inherits an interface, what are the 2 options available for that class?

711


Differentiate between a class and a method.

781


Can an interface have an inner class?

782


Can we reduce the visibility of the inherited or overridden method ?

772


What is data encapsulation and what's its significance?

781


What is a pure virtual function?

852


Explain about inheritance hierarchies?

721


Does a class inherit the constructor of its super class?

679


What is the syntax of object oriented method call?

722


What is the main advantage of using inheritance?

754


Explain about overriding polymorphism?

794


What if we override the conflicting method in the class?

699