Question:Consider the sample code given below and answer the question that follows.
class Outer { public: class Inner { int Count; public: Inner(){}; }; }; int main() { Inner innerObject; Outer outObject; return 0; }What will be the result when the above code is compiled?
A The code will compile fine
B There will be errors because classes cannot be defined inside other classes
C There will be an error because Outer does not define a constructor
D There will be an error because in the declaration of innerObject the type Inner must be qualified by Outer
E There will be no errors but a warning that Inner and Outer do not have destructors
+ AnswerD
+ Report