-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLEDTV.java
More file actions
26 lines (21 loc) · 757 Bytes
/
LEDTV.java
File metadata and controls
26 lines (21 loc) · 757 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
package OOPS;
public class LEDTV extends Product {
String brandName;
String technology;
// overLoading
void setProductDetails(String productName, int productID, float productPrice, String brandName, String technology) {
this.productName = productName;
this.productID = productID;
this.productPrice = productPrice;
this.brandName = brandName;
this.technology = technology;
}
// overriding
void showProductDetails() {
System.out.println("Product ID : " + productID);
System.out.println("Product Name : " + productName);
System.out.println("Product Price : " + productPrice);
System.out.println("LEDTV Brand Name : " + brandName);
System.out.println("LEDTV Techology : " + technology);
}
}