Challenge 1: Implement the Derived Class
Can you Implement the Derived Class function by using the Base Class functions? A solution is placed in the solution section to help you, but we would suggest you try to solve it on your own first.
Problem Statement
You have to implement a method GetDetails()
in the Derived Class Beverage
, which inherits from the Product
class.
-
An auto-implemented property
Liters
of typeint
is declared in theBeverage
class. -
Modify the ...