Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Экзамен #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Экзамен #3

wants to merge 1 commit into from

Conversation

Veniamin1511
Copy link

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

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

public void Test2()
{
Duckinator utkonos = new Duckinator();
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.

Тогда в интерфейсе Fly надо поменять на string Fly { get; set; }

Copy link
Author

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