Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A
- {
- int x;
- public:
- setX(int x1)
- {
- x = x1;
- }
- void showA(void)
- {
- cout << x;
- }
- };
- class B
- {
- int y;
- public:
- void setY(int y1)
- {
- y = y1;
- }
- showB(void)
- {
- cout << y;
- }
- }objB;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement