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

Veröffentlicht am: 29 April 2024
auf dem Kanal: 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


Auf dieser Seite können Sie das Online-Video Homework 04 - Object-oriented programming: Encapsulation/Inheritance/Polymorphism mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Stefan Macke 29 April 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 419 Mal angesehen und es wurde von 17 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!