A. The cardID and limit variables break polymorphism. B. The code demonstrates polymorphism. C. The ownerName variable breaks encapsulation. D. The setCardInformation method breaks encapsulation. E. The class is fully encapsulated.
A.A B.B C.C D.D E.E
A. The code runs with no output. B. Compilation fails. C. An exception is thrown at runtime. D. ClassC is displayed.
A. Compilation fails because of an error in line 19. B. An exception is thrown at runtime. C. B D. Compilation fails because of an error in line 18. E. Compilation fails because of an error in line 15. F. The code runs with no output.
A. doStuff x = 6 main x = 6 B. Compilation fails. C. doStuff x = 6 main x = 7 D. An exception is thrown at runtime. E. doStuff x = 7 main x = 6 F. doStuff x = 7 main x = 7