use of class and object in 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
}
}