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

Publicado el: 28 junio 2021
en el canal de: 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...


En esta página del sitio puede ver el video en línea Java - enum reference data type with constructor and method - Practical Demo de Duración hora minuto segunda en buena calidad , que subió el usuario Dr. Parag Shukla 28 junio 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,304 veces y le gustó 24 a los espectadores. Disfruta viendo!