In the week 3, I learn the Object-Oriented Programming.
Object_Oriented Programming, which is also known as OOP, carries an significant
meaning in the field of computer science and represents almost the whole part
of all the mainstream computer languages, such as C++ and Python.
In the lecture, I know some glossary like attribute, class, instance,
method.attribute is one of the named data items that makes up an instance.
class is a user - defined compound type. A class can also be thought of as a template for the objects that are instances of it.
instance is an object whose type is of some class. Instance and object are used interchangeably.
method is a function that is defined inside a class definition and is invoked on instance of that class.ALL the material covered in the past 3 weeks has been interesting so far, so I have no complaints about the course, and it has not been ovwely challenging at all. And the exercise is very helpful for me to review the information I learn in the lecture. That's a good practice.
没有评论:
发表评论