@@ -270,7 +270,7 @@ func main() {
|
||||
mark.SayHi()
|
||||
}
|
||||
```
|
||||
### Method overload
|
||||
### Method Overriding
|
||||
|
||||
If we want Employee to have its own method `SayHi`, we can define a method that has the same name in Employee, and it will hide `SayHi` in Human when we call it.
|
||||
```Go
|
||||
|
||||
Reference in New Issue
Block a user