From bf4ef1e22c6ee07c0c9f4b22ad2abe54fcd3485c Mon Sep 17 00:00:00 2001 From: FrankTung Date: Mon, 27 Feb 2017 15:03:11 +0800 Subject: [PATCH] fix interface implementation --- en/02.6.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/02.6.md b/en/02.6.md index 8b2c724b..74875680 100644 --- a/en/02.6.md +++ b/en/02.6.md @@ -14,7 +14,7 @@ Let's do some more work. We'll add one more method `Sing()` to them, along with Now, Student has three methods called `SayHi()`, `Sing()` and `BorrowMoney()`, and Employee has `SayHi()`, `Sing()` and `SpendSalary()`. -This combination of methods is called an interface and is implemented by both Student and Employee. So, Student and Employee implement the interface: `SayHi()` and `Sing()`. At the same time, Employee doesn't implement the interface: `SayHi()`, `Sing()`, `BorrowMoney()`, and Student doesn't implement the interface: `SayHi()`, `Sing()`, `SpendSalary()`. This is because Employee doesn't have the method `BorrowMoney()` and Student doesn't have the method `SpendSalary()`. +This combination of methods is called an interface and is implemented by both Student and Employee. So, Student and Employee implement the interface: `SayHi()` and `Sing()`. At the same time, Employee doesn't implement the interface: `BorrowMoney()`, and Student doesn't implement the interface: `SpendSalary()`. This is because Employee doesn't have the method `BorrowMoney()` and Student doesn't have the method `SpendSalary()`. ### Type of Interface