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

Publicado em: 28 Junho 2021
no 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...


Nesta página do site você pode assistir ao vídeo on-line Java - enum reference data type with constructor and method - Practical Demo duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Dr. Parag Shukla 28 Junho 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,304 vezes e gostou 24 espectadores. Boa visualização!