+ 2

C#Love chat-4

Speaking about interfaces. What is the real mean of them? I don't really understand, when interfaces are gonna be useful. Here I can just write the same code with "Speak()" in both classes Mandy and Wendy, but without interfaces... https://code.sololearn.com/c5aw3hB6AuT7/?ref=app

10th Sep 2017, 8:45 PM
Топчий Анастасия Александровна
Топчий Анастасия Александровна - avatar
2 Antworten
+ 5
They're are used as a mediator. A blueprint of something that should be done in a particular way.
10th Sep 2017, 9:49 PM
Stoyan Todorov
Stoyan Todorov - avatar
+ 1
@Empty thank you, you always explain clear :)
11th Sep 2017, 4:46 AM
Топчий Анастасия Александровна
Топчий Анастасия Александровна - avatar