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 polymorphism explain its types?

692


What is the renewal class?

2171


What is oops in programming?

570


What are objects in oop?

614


What is object in oop with example?

714






What is the example of polymorphism?

564


How can you overcome the diamond problem in inheritance?

775


Write a program to reverse a string using recursive function?

1798


Can an interface inherit a class?

567


What type of loop is a for loop?

690


What is the benefit of oop?

576


write knight tour problem which is present in datastructure

2172


What is multilevel inheritance?

732


What is class and object in oops?

615


i got a backdoor offer in process global,Bangalore..Can i work with it?

2339