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

Published: 28 June 2021
on channel: 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...


On this page of the site you can watch the video online Java - enum reference data type with constructor and method - Practical Demo with a duration of hours minute second in good quality, which was uploaded by the user Dr. Parag Shukla 28 June 2021, share the link with friends and acquaintances, this video has already been watched 1,304 times on youtube and it was liked by 24 viewers. Enjoy your viewing!