‫Welcome back.
‫In this chapter, we are going to cover object oriented programming in C sharp.
‫So far, we have only worked in one class and that was our first main class with the main method.
‫And we didn't do any real object oriented programming in that sense.
‫And in this video, I'm going to show you a little glimpse of what's going to happen in the next chapter.
‫So let's go ahead and have a look at what a class is.
‫In general, a class is a blueprint of an object, and that's where this object oriented programming
‫comes from.
‫So pretty much you can create multiple objects of a specific class that you can create yourself.
‫And we even have used classes already, as you know, for example, the console class or the string
‫class and so forth.
‫Then a class has actions, abilities which are so called member functions or methods.
‫So we have used methods already from even those classes that we have seen.
‫So console for example, there were methods that we have used as read or read line, write line, those
‫kind of things.
‫So these were methods or so called member functions of that class.
‫Then it has properties, so called member variables such as length.
‫We have seen the length property of one class and that was our string class where we checked, how long
‫is the string?
‫And that was a property of that class.
‫So you can create multiple different properties and you can call them later on.
‫Then inheritance is possible with classes and we'll have a look at inheritance in a additional chapter
‫where we look into inheritance in more detail.
‫But now, just for you to know, it's possible to inherit classes and they can be used like a data type.
‫For example, a string is a class and we have used strings as data types.
‫All right, so next one is an object.
‫What is an object?
‫Well, you can create objects out of a class.
‫So as I said, it's a blueprint for an object, a class.
‫Now we see an object here, which is a car and it's an Audi.
‫And the properties of that car could be the horsepower, the amount of wheels, the lumen of the front
‫light, then the doors and many more properties.
‫Then the abilities would be to drive, to break, to open a window, make light and so forth, plenty
‫of abilities.
‫And then finally inheritance would work like that.
‫You have a car which inherits to Audi.
‫So an Audi is a car but has specifics.
‫Then an A5 is an Audi but has its own specifics and so forth.
‫So this is just a very brief introduction into object oriented programming and into classes.
‫And we're going to go into the demo where you will see all those things in action and get a better understanding
‫for what they do and what the purpose is and how we can use them.
‫All right.
‫So see you in the next video where we'll create our own class.