Answer Posted / shambhu gupta
Class is a user defined data type whereas Object can be
veiwed as a variable of class type
For example fruit is a class & mango,apple are different
objects of class fruit.
Class can be a person whereas objects can be any existing
person like Ram ,Shayam,Rahul etc
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is the difference between a virtual method and an abstract method?
How does abstraction differ from encapsulation.
Write about abstract base classes?
Are constructors inherited? Can a subclass call the parent's class constructor? When?
Explain what is single and multiple inheritance?
What are extrinsic and intrinsic connections in object-oriented programming?
What is operator overloading and polymorphism?
Do we require a parameter for constructors?
Explain about encapsulation?
What is the main difference between overloading and overriding?
Can encapsulation be called as a security device?
What is an interface?
Can a function be overloaded based on return types?
What is the difference between an Abstract class and Interface?
What is a try/ catch block?