MCQOPTIONS
Saved Bookmarks
| 1. |
Which among function will be overridden from the function defined in derived class below: class A { int i; void show() { cout<<i; } void print() { cout <<i; } }; class B { int j; void show() { cout<<j; } }; |
| A. | Show() |
| B. | Print() |
| C. | Show() and print() |
| D. | Compile time error |
| Answer» B. Print() | |