Is class an Object? Is object a class?

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


Please Help Members By Posting Answers For Below Questions

Explain the concept of multiple inheritance (virtual inheritance). Write about its advantages and disadvantages?

581


Can encapsulation be called as a security device?

568


what is full form OOP?

569


Can we have default method with same name and signature in the derived interface as the static method in base interface and vice versa?

563


Which OOPS concept exposes only the necessary information to the calling functions?

693






Explain colloboration

518


How can I be thrown polymorphically?

578


What is the difference between multiple and multilevel inheritance?

581


Whether static method can use nonstatic members?

551


Why dynamic binding is used in object-oriented programming?

612


Can you create an instance of an abstract class?

574


What is static and dynamic Binding?

579


Explain what is polymorphism?

616


What is multiple inheritance? How java 8 supports multiple inheritance?

604


Can different parts of a partial class inherit from different interfaces?

568