1 / 15

Animal

Animal. e at(). sleep(). roam(). Animal. Canine. e at(). sleep(). roam(). roam(). Wolf. Animal. Canine. e at(). e at(). sleep(). roam(). roam(). Wolf. Animal. Canine. e at(). e at(). sleep(). roam(). roam(). JVM. Wolf. Animal. Canine. e at(). e at(). sleep().

albina
Download Presentation

Animal

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Animal eat() sleep() roam()

  2. Animal Canine eat() sleep() roam() roam()

  3. Wolf Animal Canine eat() eat() sleep() roam() roam()

  4. Wolf Animal Canine eat() eat() sleep() roam() roam()

  5. JVM

  6. Wolf Animal Canine eat() eat() sleep() roam() roam() 잦았어

  7. Wolf Animal Canine eat() eat() sleep() roam() roam()

  8. Wolf Animal Canine eat() eat() sleep() roam() roam()

  9. 잦았어 Wolf Animal Canine eat() eat() sleep() roam() roam()

  10. Wolf Animal Canine eat() eat() sleep() roam() roam()

  11. 잦았어 Wolf Animal Canine eat() eat() sleep() roam() roam()

  12. Wolf Animal Canine eat() eat() sleep() roam() roam()

  13. class Main 와 main method 추가 해서, Animal 배열 만들고 Cat, Dog 그리고 Frog 객체 배열에 대입하시오. For loop 에서 각 객체의 eat(), move(), makeNoise메솓들을 호출하시오. 각 객체의 String food 인스턴스 변수를 대입 필요: Cat: “샹선”, Dog: “벼”, Frog: “벌래” void eat() - System.out.println(“I am eating” + food); void move – LandAnimal: “I am running”, WaterAnimal: “I am swimming” void makeNoise – Cat: “야옹”, Dog: “멍멍”, Frog: “개굴 개굴”

More Related