-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStore.java
More file actions
39 lines (28 loc) · 697 Bytes
/
Store.java
File metadata and controls
39 lines (28 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.tyss.nextcore;
/*@ inheritance*/
public class Store {
public static void main(String[] args) {
/*Phone phone=new Phone();
phone.brand="Nokia";
phone.price=2000;
phone.ram=4;
System.out.println(phone.brand);
System.out.println(phone.price);
phone.call();
phone.message("i will catch you later dude");
phone.radio();
System.out.println("++++++++++++++++++++++++++");
SmartPhone sp=new SmartPhone();
sp.brand="iPhone";
sp.camera=32;
sp.cameraCount=4;
sp.ram=8;
sp.price=100000;
System.out.println(sp.brand);
System.out.println(sp.price);
sp.call();
sp.message("WE will see later");
sp.play();
sp.radio();*/
}
}