Well, OOP, what a cool name. I've been using Python for a term already and I don't know it's using something called OOP(Object-oriented programming).What is Object-oriented Programming? After I went through some research online, I had ideas now.
This type of programming is an idea. It contains many objects unlike a procedural programming language. Basically, such programming language is split into different parts having different functions and applications. Each part has its own logic and data. It represents one of the small part of the whole program. It's easier for us to organize and think about a task.
A few terms need us to pay attention. They appear in a OOP frequently. First of all, there is something called class. We can understand it by taking it as a blueprint. It describes what something exactly is. It exists in different part of the program. It represents anything as long as something has idea. All classes define attributes and behaviors. In simple words, attribute is some kind of data or variable in the class. Behaviour is what can you do, is like a function. Also the data is abstract, and we need something called object. An object is a something real. We can create many objects within one class. For example, we have a class, which is like a blueprint. From it, we can build a lot of houses, which are our objects. This describes the relationship between class and objects.
Thinking of our world, we are all surrounded by objects. We might have a class called shoes. And we can have different objects which is shoes. We might see heels, boots, or sneakers.
Week 3 is amazing. I learned a lot this week such as Exception, and a new class called Stack. For me, practising is very important. I couldn't survive in CS if I juts did not do any actual programming work. Last term, it's my first time to touch something like Python. Hopefully, I can succeed in this course just like in CSC108. Let's pause for a moment and do my exercise two now. OOP, OP!