answersLogoWhite

0


Best Answer

You have a class(i.g. MyClass):

class MyClass{

public:

int MyData;

};

And then you use the class like this:

int main(){

MyClass MyObject;

MyObject.MyData=7;

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

C++ = b

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is an instance class in C plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the role of object in c plus plus?

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


What is object in c plus plus?

An object is simply an instance of a class.


What is a distructor in c plus plus?

A destructor destroys an instance of a class to free up memory.


What are the objects used in dev c plus plus?

Objects in Dev C++ are the same as objects in generic C++, insofar as an object is an instance of a class.


How do you create an object type object in c plus plus?

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. }


Explain instantiation of objects in c plus plus?

Instantiation of a class literally means creating an instance of a class. This is the process of allocating memory for an object that you can use in your program.


Why c plus plus gave an ambiguity error?

Your code contains an ambiguity that the compiler cannot disambiguate. Ambiguities occur when you implicitly refer to a member for which multiple instances exist in separate namespaces. For instance, if class A is a common base class of B and C, and class D derives from both B and C, class D inherits two instance of class A, thus introducing an ambiguity when implicitly referring to members of class A. To remove the ambiguity, you must either explicitly refer to class A via class B or class C, or declare class A to be virtual in both class B and C so they both share the same instance of class A.


What if you declare public members rather than private in c plus plus?

Public members in C++ have accessibility to any function that has scope to the instance of the class, whereas private members have accessibility only to functions of that class.


What is self referential function in c plus plus?

A self-referential function in C++, or in any other supporting language, is a recursive function.


Object in c and c plus plus?

C is not an object-oriented programming language and therefore has no objects as such. However, the term is often used in a more general sense to mean any instance of an user-defined or primitive variable/constant. In C++, the term is used specifically to mean any instance of a class.


Can a c plus plus class be derived from a Java class?

No.


What is object oriented language in c plus plus?

C++ enables object oriented programming through the use of classes, where an object is an instance of a class. A class is essentially a data type, one that can store information (much like an int stores a value) and that provides an interface to that information.