Hello CSC148!
- Slog
- Inheritance
To be honest, I do not like writing in any form. Undeniably, writing things down really do a better job for us to reorganize our mind and help us to clarify out thoughts to others more explicitly, which makes me to take it serious and do a great job of the last session. Apart from this, team work is very important for programming a very large project, which requires enough communication for programmers to change there thoughts and make adjust to each other. Hence, I will keep going on without any complains.
The first interesting concept of programming is Inheritance. Because I learned some languages before by myself, hence, the concept rings a bell to me.
literally, inheritance just indicates a relationship between two classes. class B(A) means that subclass B owns all attributions and methods of superclass A. Moreover, B could choose to add more attributions and methods or even override(overwrite) the method of A for some peculiarities of B, which allows us to make the subclass more complex by inheriting the base of the superclass.
Besides, we could use one superclass to create many other subclass which shares some similar features but more special peculiarities.
More you practice and more you will learn.
没有评论:
发表评论