Skip to content

Conversation

@Flamingo-37
Copy link

Создайте абстрактный класс утка с методам swim, абстрактным методом display, и интерфейсы fly и quack. Показать пример использования класса наследующего абстрактный класс и реализующими интерфейсы.

@@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ненужные файлы в репозитарии

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

да, я про gitignore забыл чет (

{
Duck2 donald = new Duck2();
string d = donald.Display();
Assert.Equal("Я утка", d);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А если я хочу другое поведение полета?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants