MemberCustomer.java - Assignment 5 Arizona State University...

This preview shows page 1 out of 1 page.

// Assignment #: 5 // Arizona State University - CSE205 // Name: Punit Denani // StudentID: 1210836234 // Lecture: MWF 10:30 // Description:This is one of the child classes to Customer which accounts for the discount provided to a customer based on the points a customer has public class MemberCustomer extends Customer { private int pointsCollected; public MemberCustomer(String fName, String lName, double amount, int year, int month, int date, int points) { //accessing the parent class super(fName,lName,amount,year,month,date); pointsCollected = points; } //computing the payment based on the points a customer has public void computePaymentAmount() { if(pointsCollected > 100 )

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture