Animal - PowerPoint PPT Presentation

slide1 n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Animal PowerPoint Presentation
play fullscreen
1 / 15
Animal
110 Views
Download Presentation
albina
Download Presentation

Animal

- - - - - - - - - - - - - - - - - - - - - - - - - - - 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: “개굴 개굴”