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...
Sur cette page du site, vous pouvez voir la vidéo en ligne Java - enum reference data type with constructor and method - Practical Demo durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Dr. Parag Shukla 28 juin 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,304 fois et il a aimé 24 téléspectateurs. Bon visionnage!