Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. public class A {
  2.     public:
  3.         int a;
  4.         A():a(2){}
  5.         A(A & aa):A(){ this->a = aa->a; }
  6. };
  7.  
  8. public class B: public A {
  9.     public:
  10.         B():A(){ a+=3; }
  11.         B(B & b){}
  12. };
  13.  
  14. void main(){
  15.     B b0;
  16.     B b1(b0);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement