+ 1

What to be filled in the blanks

Inheritance while using protected

13th Mar 2019, 2:30 PM
Rami Reddy Satti
Rami Reddy Satti - avatar
3 Answers
+ 2
No blanks. Add the blanks please.
13th Mar 2019, 2:36 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 1
#No blanks. Add the blanks please.#include <iostream> using namespace std; class B { protected: int data; }; class D1 : public __________ B { //LINE 1 public: void show() { cin >> data; cout << "Data in class D1 is:" << data << endl; } }; class D2 : __________ public B { //LINE 2 public: void out() { cin >> data; cout << "Data in class D2 is:" << data << endl; } };
13th Mar 2019, 2:42 PM
Rami Reddy Satti
Rami Reddy Satti - avatar
- 1
Reply me soon
13th Mar 2019, 2:42 PM
Rami Reddy Satti
Rami Reddy Satti - avatar