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
En esta página del sitio puede ver el video en línea Homework 04 - Object-oriented programming: Encapsulation/Inheritance/Polymorphism de Duración hora minuto segunda en buena calidad , que subió el usuario Stefan Macke 29 abril 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 419 veces y le gustó 17 a los espectadores. Disfruta viendo!