Embark on your journey of Object-Oriented Programming in C# with this course. Learn about classes, objects, methods, attributes, encapsulation, and inheritance, while also touching upon method overriding. Program space missions as Cosmo, defining classes and objects for various celestial entities.
Overview
Syllabus
- Lesson 1: Understanding the Program Class and Main Function
- Starting with Main Function
- Rename the Entry Point Class
- Fix the Code Compilation
- Basics of C# Program Entry
- Write Your First Main Function
- Lesson 2: Defining Classes, Attributes and Objects
- Creating and Using Objects
- Default Attribute Values in Classes
- Debugging Spaceship Program
- Filling in Missing Attribute Code
- Create a Planet Class
- Lesson 3: Learning About Methods
- Launching Methods in C#
- Using Parameters with Launch Method
- Fix the Launch Method
- Write Your Own Class Method
- Lesson 4: Initializing Objects with Constructors
- Using Constructors to Launch
- Setting Default Values in Constructor
- Enhance Spaceship with Speed Attribute
- Fix the Constructor Bug
- Completing Spaceship Constructor Code
- Writing Constructors for Initialization
- Lesson 5: Mastering Encapsulation with Properties
- Understand and Observe Encapsulation
- Modifying Attributes with Encapsulation
- Fix Encapsulation and Access Properties
- Encapsulation in C# Properties
- Mastering Encapsulation with Properties
- Lesson 6: Diving into Inheritance
- Understanding Inheritance in C#
- Fix the Inheritance Constructor
- Understanding Protected in Inheritance
- Complete the Inheritance Code
- Creating Class Hierarchies in C#
- Lesson 7: Understanding Method Overriding
- Method Overriding in Action
- Combining Base and Derived Methods
- Fix Method Overriding Bug
- Override and Implement Methods
- Mastering Method Overriding