Inheritance Quiz-Asked in Interviews

What will be the output of the following code snippet?

A) Compiler Error in line “ bp->show()”

B) Compiler Error in line “ cout << bp->x”

C) In Base 10

D)In Derived 10

Solution: B are Correct

Thanks for Reading

Placewit grows the best engineers by providing an interactive classroom experience and by helping them develop their skills and get placed in amazing companies.

Learn more at Placewit. Follow us on Instagram and Facebook for daily learning.

--

--

--

Upskilling students for tech placements!

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Data Science: How to — Write CSV from an API (JSON)

Adapting toYou: Fusion Lifecycle Gets a New Name

How to organize your thoughts on the whiteboard and crush your technical interview

Creating a Rewarding Engineering Culture

Inventing programming with Python

My Experience With The Curriculum, And Learning Style At Masai School

What is the use of Destructor in Java?

HTTP — A 10,000 Foot Overview

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Placewit

Placewit

Upskilling students for tech placements!

More from Medium

One Mile on the globe Puzzle

Interview preparation -DSA #day1

Leetcode 1514. Path with Maximum Probability

Leetcode Q330. Patching Array (Q278)