Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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