Newer
Older
Architecture / src / main / java / proto / Main.java
m1924003 on 16 May 2019 411 bytes window追加
package proto;
import javax.swing.JFrame;

public class Main {

	public static void main(String[] args) {
		A ins[] = { new A(10), new B(5), new C(7), new D(8) };
		for (int i = 0; i < 4; i++) {
			System.out.println(ins[i].get());
		}
		JFrame frame=new JFrame("test");
	    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	    frame.setSize(400,400);
	    frame.setVisible(true);
	}

}