ENUMS in every programming language (All you need to know)
CodeBeauty CodeBeauty
274K subscribers
25,845 views
0

 Published On Premiered Jun 14, 2022

📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
C++ Lambdas e-book - free download here: https://bit.ly/freeCppE-Book
Entire Object-Pascal step-by-step guide - free download here: https://bit.ly/FreeObjectPascalEbook

🚀📈💻🔥 My Practical Programming Course: https://www.codebeautyacademy.com/
Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.

☕ If you've found my content helpful and would like to support me, you now have the option to buy me a coffee or a cookie! It's a small gesture of gratitude that means a lot to me and helps me keep creating free educational videos for you. You can use the link below to make a contribution: https://bit.ly/CodeBeauty_BuyMeACoffee
However, please don't feel obligated to do so. I appreciate every one of you, and I will continue to share valuable content with you regardless of whether you choose to support me in this way. Thank you for being part of the Code Beauty community! ❤️😇

In this video, I'll teach you everything you need to know about enumerations in every programming language.
By using enums you increase compile-time checking of your code and avoid errors that can happen by using invalid constants (numbers or strings). This is because enums let you define which values are legal to use.
You'll also learn about the relationship between enums and loops, enums and functions, casting enums and handling user input, as well as iterating through enum elements and using an enum as a function parameter.
After watching the entire video you'll be able to understand what are enums and apply this knowledge to any other programming language. This will help you to write cleaner code that will be easier to understand and maintain.

👉 Download Visual Assist here: https://bit.ly/VisualAssistDownload
(It improves Visual Studio experience by quickly identifying and fixing code errors)

Contents:
00:00 - What is enum?
02:53 - How to create an enum?
03:54 - Enums under the hood
05:21 - How to change the value of the enum member?
08:07 - Casting int to an enum (Handling user input)
11:13 - Make your first program with enums (+ tips to fix bugs)
14:10 - How to iterate through enum elements?
17:06 - Enum as a function parameter

Other courses mentioned in this video:
My top 5 Visual Assist features:    • My top 5 Visual Assist features! Best...  
Switch-case for beginners:    • C++ FOR BEGINNERS (2020) - Switch/cas...  
Error handling with Try-catch:    • Exception handling in C++ (How to han...  
Do-while loop:    • C++ FOR BEGINNERS (2020) - Do while l...  

Add me on:
Instagram 📸 -   / truecodebeauty  
Twitter 🐦-   / truecodebeauty  

show more

Share/Embed