Question: Which of the labeled lines in the following code can be independently uncommented by removing the // characters, such that the code will still compile?
Which of the labeled lines in the following code can be independently uncommented by removing the // characters, such that the code will still compile?

Select the two correct answers.
(a) Line A
(b) Line B
(c) Line C
(d) Line D
(e) Line E
class GeomInit ( //int width= 14; { // area = width * height; int width= 37; { // height = 11; } int height, area; //area= width * height; { // } int width = 15; area = 100; / Line A */ /* Line B */ /* Line C */ /* Line D */ /* Line E */
Step by Step Solution
3.37 Rating (156 Votes )
There are 3 Steps involved in it
c and e Line A will cause an illegal redefinition o... View full answer
Get step-by-step solutions from verified subject matter experts
