-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMOBILE.java
More file actions
29 lines (24 loc) · 804 Bytes
/
MOBILE.java
File metadata and controls
29 lines (24 loc) · 804 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
package OOPS;
public class MOBILE extends Product {
int ram;
String os;
int sdCard;
void setProductDetails(String productName, int productID, float productPrice,
int ram, String os, int sdCard) {
this.productName = productName;
this.productID = productID;
this.productPrice = productPrice;
this.ram = ram;
this.os = os;
this.sdCard = sdCard;
}
void showProductDetails() {
System.out.println("Company CEO : "+getCompanyCEO());
System.out.println("Product ID : "+productID);
System.out.println("Product Name : "+productName);
System.out.println("Product Price : "+productPrice);
System.out.println("Product RAM : "+ram);
System.out.println("Product OS : "+os);
System.out.println("Product SDCard : "+sdCard);
}
}