Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package imi.tsydenov;
- public class Main {
- public static void main(String[] args) {
- PC a = new PC(30000, "Dell", "Packard Bell", "Genius", "A4Tech" );
- //c.age = 5;
- //c.name = "Tom";
- System.out.println(a.getInfo());
- PC b = new PC(70000, "HyperX", "LG", "Razer", "Steelseries", 10 );
- /*
- b.discount = 10;
- b.price = 700000;
- b.SystemUnit = "HyperX";
- b.Monitor = "LG";
- b.Keyboard = "Razer";
- b.Mouse = "SteelSeries";
- */
- System.out.println(b.getInfo());
- }
- }
Add Comment
Please, Sign In to add comment