Advertisement
vencinachev

Zad9

Feb 3rd, 2021
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. Конструктори:
  2. Person()
  3. {
  4. name = "NoName";
  5. age = 19;
  6. }
  7.  
  8. Person(String n, int a)
  9. {
  10. name = n;
  11. age = a;
  12. }
  13.  
  14. Изход:
  15.  
  16. Name: NoName
  17. Age: 19
  18. Name: Sam
  19. Age: 22
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement