class interfaces C++ code example
Example: class in c++
class Name {
private:
int data;
public:
// Constructor
Name() {
// Code
}
int id;
void fun1(int a) {
// Some instructions here
}
}
class Name {
private:
int data;
public:
// Constructor
Name() {
// Code
}
int id;
void fun1(int a) {
// Some instructions here
}
}