Question: the DebitCardPayment class in java Define a class named DebitCardPayment that is derived from CreditCardPayment. This class should contain an instance variable for the name

 the DebitCardPayment class in java Define a class named DebitCardPayment that

the DebitCardPayment class in java

Define a class named DebitCardPayment that is derived from CreditCardPayment. This class should contain an instance variable for the name on the PIN. Include appropriate constructor(s). Finally, redefine the paymentDetails method to include all debit card information and payment amount in the printout. Define a class named PaymentTest class that contains a main method that declares a Payment reference variable, and creates a CashPayment object, a CreditCardPayment object and a DebitCardPayment object with different values. Assign each object to the Payment reference variable and then calls paymentDetails for each until all objects paymentDetails are called once. (5 pts) Define a class named DebitCardPayment that is derived from CreditCardPayment. This class should contain an instance variable for the name on the PIN. Include appropriate constructor(s). Finally, redefine the paymentDetails method to include all debit card information and payment amount in the printout. Define a class named PaymentTest class that contains a main method that declares a Payment reference variable, and creates a CashPayment object, a CreditCardPayment object and a DebitCardPayment object with different values. Assign each object to the Payment reference variable and then calls paymentDetails for each until all objects paymentDetails are called once. (5 pts)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!