What is the difference between class and object?

Answers were Sorted based on User's Feedback



What is the difference between class and object?..

Answer / neha

classes and objects are seprate but related concept.every
object belong to a class and every class contains one or
more objects.

Is This Answer Correct ?    7 Yes 1 No

What is the difference between class and object?..

Answer / 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

What is the difference between class and object?..

Answer / johncz

Class is a template for the custom type that can be used as
variable. It defines types of data that class contains and
the set of functions to manipulate those data types. It is
just a recipe to be used when class is instantiated.

Object is an entity created using class template. Such an
object occupies computer’s memory. Each object of the class
is independent entity.

Is This Answer Correct ?    0 Yes 0 No

What is the difference between class and object?..

Answer / kanchi

class is the advance version of structure because it contains the data and functions both so it is wrapped into a single unit called encapsulation.
Object is the instance of class and it always created at run time

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

2 Answers  


features of OOPS

22 Answers   Ness Technologies, Satyam,


What do you mean by abstraction?

0 Answers  


monkey starts climbing up a tree 20ft tall,each hour ,it hops 3ft and slips back by 2ft .how much time it wil tak to reach top of the tree?

13 Answers   IonIdea,


Explain polymorphism? What r the types of polymorphism? pls give examples?

4 Answers   HCL,






Describe the difference between a Thread and a Process?

11 Answers   Siebel Systems,


i have to create a view in SQL as like in ORACLE DATA EXPRESS EDITION

2 Answers   CTS,


Can you name some types of inheritance?

1 Answers   Motorola,


#include <iostream> using namespace std; int main() { int a = 3; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][2]; }

1 Answers  


what is the difference between class and object?

9 Answers  


What is difference between multiple inheritance and multilevel inheritance?

0 Answers  


What is a friend function & its advantage?

2 Answers   TCS,


Categories