|
|
| classes |
Expert:kyota
help me develop a class to represents a human. The head, arms and legs should be properties of the human and should be represented by separate objects. All of my objects should have at least three properties and one method, the head, arms and legs can only be constructed from with the same package. The human should include a walk method that uses the legs to actually move. In the main method of the human,i shud create an instance of a human and set the properties so that it looks like a person. the relations between Human and Arm or Leg are compositions.
what does composition mean i came across it |
| Answers |
| More Questions |
|
|
Post Answers
Ask Question
Facing Programming Problem?
|
|
|
|
|