Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PremiumService extends Customer {
- private double minVideoCall;
- private double minVideoMail;
- public PremiumService( String name, String address, String telNo, int noOfSms,
- double minCall, boolean threeG, double minVideoCall, double minVideoMail ) {
- super( name,address, telNo, noOfSms, minCall, threeG );
- this.minVideoCall = minVideoCall;
- this.minVideoMail = minVideoMail;
- }
- public String toString() {
- return super.toString() + "\nVideo Call min: " + minVideoCall + "\nVideo Mail min: " + minVideoMail;
- }
- public double getTotalPremium() {
- double charge = minVideoCall + super.calCharge();
- return charge;
- }
- }
Add Comment
Please, Sign In to add comment