Analyze the following code:

```
public class A extends B {
}

class B {
public B(String s) {
}
}```
a. The program has a compile error because A does not have a default constructor.
b. The program has a compile error because the default constructor of A invokes the default constructor of B, but B does not have a default constructor.
c. The program would compile fine if you add the following constructor into A: A(String s) { }
d. The program would compile fine if you add the following constructor into A: A(String s) { super(s); }

bd

Computer Science & Information Technology

You might also like to view...

The ____ handles computer crimes that are categorized as felonies.

A. FBI B. U.S. Secret Service C. U.S. Treasury Department D. Securities and Exchange Commission

Computer Science & Information Technology

The NULL statement is '\0';.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology