Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ako imash
- class Bla {
- public:
- int a;
- Bla(int a) {
- this.a = a
- }
- }
- i vo main imash
- main() {
- Bla instanca1 = Bla(20);
- Bla instanca2 = Bla(30);
- cout<<instanca1.a; // ke ispechate 20
- cout<<instanca2.a; // ke ispechate 30
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement