Java - enum reference data type with constructor and method - Practical Demo

Veröffentlicht am: 28 Juni 2021
auf dem Kanal: Dr. Parag Shukla
1,304
24

This video demonstrates how to use enum data type practically in Java

Following things explained in this video
enum - reference data type
whenever you have fixed no of objects at that time you can use enum.
For Example
Number of Days - 7
Number of Months - 12

enum may have constructor
enum may have methods
name() - It returns name of instance
values() - It returns array of all the instance available in enum
ordinal() - It returns the position of instance. Index startwith 0.

For Learning More about Programming
Subscribe to My Channel: https://www.youtube.com/c/drparagshuk...


Auf dieser Seite können Sie das Online-Video Java - enum reference data type with constructor and method - Practical Demo mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Dr. Parag Shukla 28 Juni 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,304 Mal angesehen und es wurde von 24 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!