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 object in oop?

705


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

1850


What are properties in oop?

622


what are the different types of qualifier in java?

1851


What is an advantage of polymorphism?

614






What is an example of genetic polymorphism?

663


What is encapsulation with real life example?

585


what type of questions

1705


Why do we use oops?

609


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1405


Explain the advantages of inheritance.

686


What is abstraction and encapsulation?

587


What is interface in oop?

676


2. Give the different notations for the class.\

1600


What is encapsulation selenium?

568