We have an abstract class, AbstractDuck, representing
all ducks. Every duck can quack and walk. Every duck has a weight,
which determines if the duck can float. We have two subclasses of
AbstractDuck: mallards and rubber ducks.
We want to assign various attributes and methods to this
diagram. For each of the following questions, indicate where we
would add the item to our diagram by selecting one of the letters A
through F. For example, if you select 'E', the item will be one of
the attributes of a rubber duck. Answers may be
duplicated.
AbstractDuck A А B Mallard Duck RubberDuck с E D LL F
We have an abstract class, AbstractDuck, representing all ducks. Every duck can quack and walk. Every duck has a weight,
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
We have an abstract class, AbstractDuck, representing all ducks. Every duck can quack and walk. Every duck has a weight,
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!