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
Nesta página do site você pode assistir ao vídeo on-line Homework 04 - Object-oriented programming: Encapsulation/Inheritance/Polymorphism duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Stefan Macke 29 Abril 2024, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 419 vezes e gostou 17 espectadores. Boa visualização!