answersLogoWhite

0


Best Answer

There is no difference; to define an object in C++ you use the 'class' definition

User Avatar

Wiki User

โˆ™ 2009-11-25 05:35:25
This answer is:
User Avatar
Study guides

Data Science

โžก๏ธ
See all cards
4.29
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
7 Reviews

Add your answer:

Earn +20 pts
Q: What is the difference between class and object in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between a class and an object of a class in C plus plus?

A class is a type definition. An object is an instance of a class.


Difference between class and object in c plus plus?

A class is the definition of a type, while an object is an instance of a class.


What is the difference between pointer to class and pointer to object in c plus plus?

You cannot point at a class, you can only point at an instance of a class, which is simply another term for an object. The class is essentially the object's type; it define's the object's behaviour, but is not the object in and of itself. The class also defines a pointer's type, so we can point at instances of a class and access the the object it represents through indirection.


How class is different from an object in c plus plus?

A class is the definition for a type of object that can instantiated. An object is an instance of that class. You work with the objects, not the class. The class merely describes what you can do with the object.


What is pointer to class in c plus plus?

You cannot point at a class. Pointers are defined by the class of object they can point at. An object is an instance of a class and the pointer points at the object, not the class.


What is object in c plus plus?

An object is simply an instance of a class.


What is the difference between an attribute and a behavior in c plus plus?

An attribute is a class member variable while a behaviour is a class member method.


What is the difference between Virtual Base Class and Abstract Class in c plus plus?

abstract class no defination used by derieved class where virtual base class is defination that can be overriden later on


Defference between c plus plus and c?

these are difference in between c and c++: a) C is a SPL and C++ is a OOP. b) C has not concept of object but C++ has this feature. c) C has not 'class' name data type but C++ has.


What is the role of object in c plus plus?

An object in C++ is an instance of a C++ class.


Difference between java and C plus plus?

java is an advanced object oriented programming language than c++


What are the abstract datatypes in c plus plus?

Class Object Message

People also asked