Homework 04 - Object-oriented programming: Encapsulation/Inheritance/Polymorphism

Опубликовано: 29 Апрель 2024
на канале: Stefan Macke
419
17

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


На этой странице сайта вы можете посмотреть видео онлайн Homework 04 - Object-oriented programming: Encapsulation/Inheritance/Polymorphism длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Stefan Macke 29 Апрель 2024, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 419 раз и оно понравилось 17 зрителям. Приятного просмотра!