设有下面的一个类定义:class AA {static void show( ){ System.out.println(“我喜欢Java!”); }}class BB { void show( ){ System.out.println(“我喜欢C++!”); } }若已经使用AA类创建对象a和BB类创建对象b,则下面哪一个方法调用是正确的?( )
选项:
A:a.show()b.show();
B:A
A:show()B
B:show();
C:A
A:show()b.show();
D:a.show()B
B:show()
发布时间:2024-06-14 20:43:34