Description
In this course, you will learn :
- Object Oriented Programming Fundamentals in C# (but the concepts apply to most languages)
- Namespaces
- Fields & Properties
- Const and Readonly constants
- Static Fields
- Static Classes (Singleton)
- Enumerations
Syllabus :
1. Basic Class Construction in C#
- Creating a Basic Object (Class) in C#
- Structuring The Files in Our Project - Namespaces
- Constructing a Class - What is The Purpose of Constructors?
- The "this" Keyword, Why and When You Should Use It
2. Fields and Properties in C#
- Fields and Properties - The Variables of a Class and The Difference Between Them
- Validation Implementation in a Property
- Read-Only, Write-Only and Read-Write Properties
3. Types of Fields in a Class
- Static Fields And Their Purpose
- Constants in C# - Const and ReadOnly and The Difference Between Them
4. Enumerations and Static Classes
- Enumerations - Limit The Input Options To Defend Your Code
- Static Class (Singleton Design Pattern) And What You Can Do With It
5. Object Oriented Programming Basics - Project and Practice
- Warrior Wars Project - Introduction to The Project
- What Is It That Defines Our Warriors? (The Fields in Our Warriors)
- Which of The Fields Should be Accessible? (Properties and Namespaces)
- What is a MUST for a Warrior? (Creating our Constructors)
- What Should Never Change? (Defining our Constants)
- What Is It That Warriors Can Do? (Implementing Attack Method)
- And What is The Result of The Attack?