CSE 215: Programming Language II Lab: Lab - 12: Abstract Class & Interface
CSE 215: Programming Language II Lab: Lab - 12: Abstract Class & Interface
Objective:
● To understand abstract class
● To understand interface
Task:
1. Implement the following classes and invoke area(), perimeter() for object of Triangle:
<<interface>> BestForCustomer
Discountable
- percentage: double
discountedPrice(price: double): double - threshold: double
- discount: double