...

/

Challenge 1: Implement the Derived Class

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 type int is declared in the Beverage class.

  • Modify the ...