Vidyalelo
C++ Programming · Q66

Inheritance in C++

Programming · C++ Programming · question 66

Q66

What will be the output of the following C++ code? #include #include using namespace std; class Mammal public: virtual void Define() cout Define(); return 0;

A.
Error
B.
Segmnetation fault
C.
I'm a Human
Answer
D.
Garbage Value

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board