Your homework:
Add an enum called "CoffeeType" to your project with values for COFFEE, CAPPUCCINO, and ESPRESSO.
Change the data type of "CoffeeType" in the CoffeeMachine class from String to CoffeeType and correct any compile errors.
Add a getName() method to the CoffeeType enum that returns the names with a capital letter, as before.
----
00:00 Introduction
00:29 Current Status
00:50 Creating the CoffeeType enum
01:15 Replacing the string with the enum
02:10 Replacing arguments with enum values
03:21 The getName() method in CoffeeType
On this page of the site you can watch the video online Homework 04 - Object-oriented programming: Encapsulation/Inheritance/Polymorphism with a duration of hours minute second in good quality, which was uploaded by the user Stefan Macke 29 April 2024, share the link with friends and acquaintances, this video has already been watched 419 times on youtube and it was liked by 17 viewers. Enjoy your viewing!