answersLogoWhite

0


Best Answer

An object is simply an instance of a class.

#include<iostream>

class my_object {};

int main()

{

my_object X; // instantiate an instance of the class my_object, identified as X.

}

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you create an object type object in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the features of C plus plus that surpass C?

Object-oriented programming and stricter type-safety.


How do you write classes and objects for hospital management software using objective c or c plus plus?

You declare a class as follows: class MyClass { //some stuff here... } You create an object as follows: MyClass object; This is how you create classes and objects in C++.


What command is used to destroy object in c plus plus?

You use delete object in C++ to delete an object. You can also implicitly delete the object, if it is automatic type, by going out of local scope.


What is the role of object in c plus plus?

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


Which type of language c plus plus is?

It's an imperative, procedural and Object-Oriented programming language.


What did C plus plus add to the C language?

Object-oriented programming principals, a more consistent syntax and improved type-safety.


Which is best C or C plus plus?

depends what you use it for. c++ = object oriented c = not object oriented


What is message passing in c plus plus?

-define class with necessary data member &amp; member function. -create object of that class. -communication.


Is c plus plus 100 percent object oriented?

No; C++ is not 100% object oriented.


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.


Types of compilation in c plus plus?

There is only one type: the one that creates an object module from a source file.


What is object in c plus plus?

An object is simply an instance of a class.