answersLogoWhite

0

class class_name

{

private:

data_members;

public:

member_functions;

};

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is message passing in c plus plus?

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


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


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

No.


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


What is the role of object in c plus plus?

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


How do you create .exe file in c plus plus?

You can create an exe-file from your C++ source, if you have a compiler.


What is nested class in c plus plus?

s.


What is the unit of programming in c plus plus A. Function B. class C. object D. Attribute?

B. Class.


What is a method in c plus plus?

In C++, methods are simply class member functions.


Can you use c in c plus plus without using class and object?

Sure.


What is the program to create a string class which stores a string value in c plus plus?

C++ already provides a string class in the C++ standard template library. #include<iostream> #include<string> int main() { using namespace std; string s {"Hello world!"}; cout << s << endl; }


What are the abstract datatypes in c plus plus?

Class Object Message