Mega Code Archive
Categories
/
C++ Tutorial
/
Class
Initialize parameters in base class
#include
class Pointer { private: long x,y; public: Pointer(long a=0,long b=0) { x=a; y=b; } long GetX(){ return x; } long GetY(){ return y; } void Disp(){ cout << "x=" <