Object-Oriented Programming in C#
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.
Lessons and practices
Starting with Main Function
Rename the Entry Point Class
Fix the Code Compilation
Basics of C# Program Entry
Write Your First Main Function
Creating and Using Objects
Default Attribute Values in Classes
Debugging Spaceship Program
Filling in Missing Attribute Code
Create a Planet Class
Launching Methods in C#
Using Parameters with Launch Method
Fix the Launch Method
Write Your Own Class Method
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
Understand and Observe Encapsulation
Modifying Attributes with Encapsulation
Fix Encapsulation and Access Properties
Encapsulation in C# Properties
Mastering Encapsulation with Properties
Understanding Inheritance in C#
Fix the Inheritance Constructor
Understanding Protected in Inheritance
Complete the Inheritance Code
Creating Class Hierarchies in C#
Method Overriding in Action
Combining Base and Derived Methods
Fix Method Overriding Bug
Override and Implement Methods
Mastering Method Overriding
Interested in this course? Learn and practice with Cosmo!
Practice is how you turn knowledge into actual skills.