PRO192_-_SP_2024_-_Block_5_-_FE_1921.webp
K

PRO192_-_SP_2024_-_Block_5_-_FE_1921.webp

Multiple Choices
(Choose 1 answer)
Class A is a subclass of class B. What would happen if you try to sort an array of mixed elements of type A and B?
public class B {...}
public class A extends B {...}
A. They would sort based on the sorting method found in class A
B. They would sort based on the sorting method found in class B
C. Sorting would just leave the original array unsorted with no exceptions thrown
D. Sorting would yield a ClassCastException as the classes are incompatible

  • Like
Reactions: bách

Thông tin

Category
PRO192
Thêm bởi
Kurourushi89
Ngày thêm
Lượt xem
5,149
Lượt bình luận
24
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom