Consider the following code: class A { }; class B : A { }; What happens when we compile this code?
- Will not compile because the body of A is empty
- Will not compile because the body of B is empty
- Will not compile because the visibility mode for A is not specified
- Will compile successfully
Answer:
Option d: Will compile successfully
Explanation Here
0 Comments