Home > Back-end >  For Java coding
For Java coding

Time:12-31

(1) write Animal interface, interface declared in the run () method
(2) define the Bird and Fish Animal interface, Bird class implementation of the run () method of the output: l am flying, the Fish class implements the run () method of the output: l am swimming
(3) the test program of the Fish and Bird, and invoke the run () method
  • Related