What is the difference between class and object?

Answer Posted / suvarna handore.

Class is a basic entity which allow to combine data and
manipulators. In class definition we need to club data
members and member functions.The usability of structure and
function together in C++ is known as class.
Objects are the basic runtime entities. Object is an
instance of class.To access data members and member
functions within classes, objects are required. We can
access data from outside the class using objects.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstraction oop?

621


What is pure oop?

597


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4234


What is the main feature of oop?

618


What is ambiguity in inheritance?

621






What do you mean by Encapsulation?

640


Why do we use oop?

601


What is the renewal class?

2161


What is constructor overloading in oop?

601


Why do we use class in oops?

552


What is class encapsulation?

584


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6143


Plese get me a perfect C++ program for railway/airway reservation with all details.

3427


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1652


What is oops in programming?

562