(Choose 2 answers)
Shape and Main are defined in the same package, examine the code and select the corre (select 2)
line1> class Shape {
line2>public void print() {
line3>System.out.println("Shape");
line4>
line5> }
}
line6> class Main {
line7>public static void main(String... args) {
line8>Shape anShape = new Shape();
line9>
anShape.print();
line10>}
line11> }
A. The class Main will print Shape.
B. If the code on line 2 is changed as follows, the class Main will print Shape:
private void print() {
Finish
El 12