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

Is html an oop?

782


What is ambiguity in inheritance?

848


Why is static class not inherited?

825


What do you mean by variable?

762


What is object-oriented programming? Webopedia definition

954


What does and I oop mean?

837


explain sub-type and sub class? atleast u have differ it into 4 points?

2043


What is the difference between a constructor and a destructor?

853


What is the full form of oops?

913


What is use of overloading?

859


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

2155


What is the advantage of oop over procedural language?

846


Why polymorphism is used in oops?

791


What is coupling in oop?

776


What is the difference between inheritance and polymorphism?

797