What is the difference between an object and a class?

Answer Posted / manas

a class is a datatype that abstratcs data and implementations
while an object is an instance of the class which wraps up data. An object has identity, state and behavior

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the significance of classes in oop?

826


What exactly is polymorphism?

883


Can main method override?

854


what are the different types of qualifier in java?

2039


What is the problem with multiple inheritance?

852


What is encapsulation in ict?

827


What is encapsulation oop?

815


What is encapsulation c#?

824


Why we use classes in oop?

795


Why is there no multiple inheritance?

788


What are objects in oop?

853


What is encapsulation with example?

810


What is encapsulation selenium?

774


What is abstraction encapsulation?

885


What is abstraction example?

851