This is the very first tutorial for Object Oriented Programming in C#. In this video we will learn what are Objects? And what is the theory behind Object Oriented Programming?
Object Oriented Programming is a way to generalize objects into their definitions which can later be used to create objects/instance of the same types.
For example: A generic definition of Car can be created with basic properties like Color, Fuel which can be later used to create different Cars of different brands like Audi, Toyota, etc
Our main goal is to create a generic definition. For this we need 3 things:
- A generic name of definition – Class name
- Generic properties or attributes – Class properties
- Generic behaviors – Class methods
We will also cover in short about constructor, methods and instance of class.
Watch this video for more: