Advertisement
Guest User

Untitled

a guest
Feb 18th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. class С { private:int a, b; public:CO;C ( int, int = 10); void write () const;} ;C::C(){ a = 1; b = 1;}C : :C (int x, int y){ a = x + 2 ; b = y - 4;}void C::write() const { cout << a << " " << b << endl;}int main(){ C el, e2 (3), e3 (5, 7); el.write () ; e2.write () ; e3.write(); return 0;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement