Anil Singh

Anil Singh

  • 2k
  • 3
  • 124

c# programming question

Sep 19 2020 4:18 AM
can anyone give solution to this problem ?
Create an interface called Payable. The Payable interface should contain three functions:
Retrieve amount due
Add to amount due
Payment address
Derive an Employee class from the Person class. The Employee class should add the following properties:
Mailing address
In addition, the Employee class should implement the Payable interface. The implementation of the functions specified in the Payable interface should make sense. In other words, the payment address should be the mailing address of the employee. In order to make this work right, you will need to allocate an internally protected state variable that keeps track of the amount of money due. This state variable will obviously be modified by the functions defined in the interface

Brought to you by:

Answers (3)