阅读背景:

Java如何将父类变量的值传递给继承对象

来源:互联网 

I'm working on a air traffic tower exercise. I have an Aircraft class with two variables id and idCounter. The class is inherited by 3 other classes - 3 types of aircraft. I use the factory design pattern to create objects from each of those 3 types, the objects are saved in an ArrayList upon creation. Each object is supposed to have a unique id, and I am supposed to use idCounter to determine it.I'm working on a air traffic tower exercise. I




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: