Documente Academic
Documente Profesional
Documente Cultură
Programming in C# Page 1 of 3
1. Create an interface Icar that has the following methods:
- Method “calculateTax()”, returns the type float: calculate the tax of the car.
- Method “calculatePrice()”, returns the type float: calculate the total cost of the
car.
- Method “getInfor()”, returns the type void: display the information of the car.
[6]
Declare fields has access modifier as private use for properties: name,
producer, year, seat and rootprice.
Programming in C# Page 2 of 3
TotalPrice = RootPrice + Tax + RootPrice * specialRate +
transportCost.
-----THE END-----
Programming in C# Page 3 of 3