Is class an Object? Is object a class?

Answer Posted / kaushi

object is an instance of a class or in other words object
is a snapshot(blueprint)of a perticuler class.
class is real world object.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we have a default method definition in the interface without specifying the keyword "default"?

542


What if we make the method as abstract in another interface?

528


A class inherits from 2 interfaces and both the interfaces have the same method name as shown below. How should the class implement the drive method for both car and bus interface?

555


Explain persistence?

579


What is an abstraction?

538






What are the types of polymorphism?

566


What are all the operators that cannot be overloaded?

554


What are the four important foundation concepts of OOP ?

558


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?

524


What is the purpose of late binding in object-oriented programming?

569


What is the difference between a virtual method and an abstract method?

538


Why abstraction is important?

609


How does abstraction differ from encapsulation.

574


Differentiate between a class and a method.

581


What are inner classes and what is the practical implementation of inner classes?

479