Java语言程序设计 例题10.4(Mypoint类)
10.4 (The MyPoint class) Design a class named MyPoint to represent a point withx- and y-coordinates. The class contains:■ The data fields x and y that represent the coordinates with gettermethods.■ A no-arg constructor that creates a point (0, 0)....
原创
2022-05-26 23:54:38 ·
1823 阅读 ·
1 评论