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
How to differentiate between a CreateObject() and GetObject() ?
What is a default method? Why do we need default methods in java 8 interfaces?
Which OOPS concept exposes only the necessary information to the calling functions?
What are all the operators that cannot be overloaded?
Explain what is meant by polymorphism?
What is single and multiple inheritance?
Difference between composition and inheritance ?
Do we require a parameter for constructors?
What is polymorphism and abstraction?
Explain static binding
If a method definition has been specified in the base class and the interface which the class is implementing, which definition will be picked if we try to access it using interface reference and class object?
Difference between class and an object?
What's the order of call of constructors in inheritiance?
What is the practical implementation of inner classes?
What is the default access specifier in a class definition?