What is class in c++

(2) Answers | Write your answer

ly:

In C++ or in other programming languages that support Object-Oriented programming style, class is an important concept which must be mentioned. A class is a block of C++ code in which data and operations of the data are specified.

The class can be used to create objects of that class type. In C++ programming language, you can create a class by using the class keyword.
class A{

private:
int data_a;
int data_b;
public:
int operation_a();
void operation_b();
};

12-30-2012

Jpdr6siC6:

Yup, that sholud defo do the trick!

08-14-2014