selfpromise

main lab 2

Mar 5th, 2020
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. package imi.tsydenov;
  2.  
  3. public class Main {
  4.  
  5. public static void main(String[] args) {
  6. PC a = new PC(30000, "Dell", "Packard Bell", "Genius", "A4Tech" );
  7. //c.age = 5;
  8. //c.name = "Tom";
  9. System.out.println(a.getInfo());
  10. PC b = new PC(70000, "HyperX", "LG", "Razer", "Steelseries", 10 );
  11. /*
  12. b.discount = 10;
  13. b.price = 700000;
  14. b.SystemUnit = "HyperX";
  15. b.Monitor = "LG";
  16. b.Keyboard = "Razer";
  17. b.Mouse = "SteelSeries";
  18. */
  19. System.out.println(b.getInfo());
  20.  
  21. }
  22. }
Add Comment
Please, Sign In to add comment