COMP2396
|
Television class, which is a subclass of the ElectronicsProduct class. More...
Public Member Functions | |
Television (String productId, String name, double price, int warrantyPeriod) | |
void | extendWarranty (int months) |
int | getWarrantyPeriod () |
![]() | |
ElectronicsProduct (String productId, String name, double price) | |
void | applyDiscount (int discount) |
String | getName () |
double | getPrice () |
String | getProductId () |
Private Attributes | |
int | warrantyPeriod |
Television class, which is a subclass of the ElectronicsProduct class.
It should have an extra attribute that records it’s warranty period (in months).
Definition at line 7 of file Television.java.
|
inline |
Definition at line 10 of file Television.java.
References tutorial4.part2.ElectronicsProduct.name, tutorial4.part2.ElectronicsProduct.price, tutorial4.part2.ElectronicsProduct.productId, and tutorial4.part2.Television.warrantyPeriod.
|
inline |
Definition at line 19 of file Television.java.
References tutorial4.part2.Television.warrantyPeriod.
Referenced by tutorial4.part2.Tester.main().
|
inline |
Definition at line 15 of file Television.java.
References tutorial4.part2.Television.warrantyPeriod.
Referenced by tutorial4.part2.Tester.main().
|
private |
Definition at line 8 of file Television.java.
Referenced by tutorial4.part2.Television.Television(), tutorial4.part2.Television.extendWarranty(), and tutorial4.part2.Television.getWarrantyPeriod().