Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. ako imash
  2.  
  3. class Bla {
  4.     public:
  5.     int a;
  6.     Bla(int a) {
  7.         this.a = a
  8.     }
  9. }
  10.  
  11. i vo main imash
  12.  
  13. main() {
  14.     Bla instanca1 = Bla(20);
  15.     Bla instanca2 = Bla(30);
  16.  
  17.     cout<<instanca1.a; // ke ispechate 20
  18.     cout<<instanca2.a; // ke ispechate 30
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement