difference between class and object

Answer Posted / nishant kumar

class is the collection of data member and member function associated with it.
object is a instance of class.
class is a user define key-word.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are constructors in oop?

595


What is abstraction in oop with example?

646


What is inheritance and how many types of inheritance?

622


Can you name some types of inheritance?

641


Why is encapsulation used?

577






What are two types of polymorphism?

612


What is class and example?

569


Which language is pure oop?

551


What are the features of oop?

641


When not to use object oriented programming?

572


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1837


What exactly is polymorphism?

610


What is object in oop with example?

704


to find out the minimum of two integer number of two different classes using friend function

1644


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?

1395