双语版Java程序设计
上QQ阅读APP看本书,新人免费读10天
设备和账号都新为新人

2.12 Exercise for you

1.What is the difference between Encapsulation, Inheritance and Polymorphism? How the Polymorphic character of Java helps to create program flow?

2.Write a simple application in Java that can multiply two numbers and print.

3.Write an application program that can print numbers from 1 to 10 and then from 10 to 1.