Talking About OOP
Learn about object-oriented programming concepts: composition, aggregation, inheritance, abstraction, and polymorphism.
We'll cover the following...
We'll cover the following...
An object in the real world is a thing, such as a car or a person, whereas an object in programming often represents something in the real world, such as a product or bank account, but it can also be more abstract.
In C#, we use the class
and record
(mostly) or struct
(sometimes) C# keywords to define a type of object. We will learn about the difference between classes and structs later. We can think of a type as a blueprint or template for an object.
Concepts of OOP
The concepts of OOP are briefly described here: