PRO192_-_SU_2023_-_Block_5_-_2_754.webp
Minh Đức1

PRO192_-_SU_2023_-_Block_5_-_2_754.webp

(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

Thông tin

Category
PRO192
Thêm bởi
Minh Đức1
Ngày thêm
Lượt xem
3,424
Lượt bình luận
18
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_SU_2023_-_Block_5_-_2_754.webp
File size
50.9 KB
Dimensions
1286px x 546px

Share this media

Back
Bên trên Bottom