This time we take a look at a few lessons in succession before mentioned,We had初见 OPEN In a development with a mobile phone (system) to describe inherited this thing chestnuts,I believe we have the impression。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
class CellPhone { func call() { print("Call someone!") } func powerUp () { print("Welcome!") } func powerDown() { print("Goodbye~") } func sendMessage() { print("sent a Message!") } } |
Inheritance
So this lesson we will learn to understand the depth of the concept of inheritance。
This is actually not difficult to understand,You see,When your parents died,Then they will be up to you to inherit wealth - Well,This is not a very happy thing worth,But this is the fact that。[……]