classA class public void something private int classA cpp include clas

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
classA.h
class A{
public
A();
~A();
void something();
private:
int x,y,z;
}
classA.cpp
#include "classA.h"
A::A() {
x = y = z = 0;
}
void A::something() {
x++;
z--;
}