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
What is the use if instanceof keyword?
What is the difference between an abstract class and interface in java?
What are different types of arguments?
If a class inherits an interface, what are the 2 options available for that class?
Differentiate between a class and a method.
Can an interface have an inner class?
Can we reduce the visibility of the inherited or overridden method ?
What is data encapsulation and what's its significance?
What is a pure virtual function?
Explain about inheritance hierarchies?
Does a class inherit the constructor of its super class?
What is the syntax of object oriented method call?
What is the main advantage of using inheritance?
Explain about overriding polymorphism?
What if we override the conflicting method in the class?