Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Given the following list of classes, attributes and methods, - identify which it

ID: 674748 • Letter: G

Question

Given the following list of classes, attributes and methods,

- identify which items are classes, which items are attributes and which items are methods;

- identify which class each attribute and method belongs to; and

- suggest a class hierarchy given your list of classes.

*Note - no particular capitalization scheme is used in the list below to differentiate between classes, methods, and attributes.

LandOnStatue, NumberOfLegs, Height, ShoeSize, Eat, Animal, Speak, WingSpan, Age, Peck, Sleep, Horse, LengthOfMane, Move, BeakLength, LengthOfTail, Bird, SaddleUp

Explanation / Answer

class: Animal
attribute: Age, Height,NumberOfLegs, BeakLength,LandOnStatue
method:Eat, Speak, Sleep,


class: Horse
attribute: LengthOfMane, ShoeSize,SaddleUp, LengthOfTail
method: Move


class : Bird
attribute: WingSpan,
method:Peck

Here Animal class is Parent class.

Hourse and Bird are child class.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote