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 significance of encapsulation?
Why is class hierarchies managed in object-oriented programming?
What is meant by function overloading and function overriding?
Why does java not support multiple inheritance?
What are the different types of arguments?
Define Destructor?
Explain the purpose of composition.
How can we restrict inheritance for a class so that no class can be inherited from it?
Explain basic concepts of OOPS?
Give any criteria when you use an abstract class and an interface?
Explain what is polymorphism?
What are extrinsic and intrinsic connections in object-oriented programming?
What is the default access specifier in a class definition?
Explain what is meant by polymorphism?
What is inheritance in java?