The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 364 Weeks Ago, 6 Days Ago |
| Questions Answered: | 1850 |
| Tutorials Posted: | 1850 |
Graduate in Biology and Nutrition, MBA Finance
Florida State University
Aug-2000 - Jul-2007
Ass. Relationship Manager
Penn-Florida
Mar-2009 - Feb-2016
Hello,
Consider the following:
Â
Consider the following classes B and D:
Class B
{
Public;
   B();
   B( int n);
};
Â
B::B()
{
  cout << âB::B()nâ;
}Â
Â
B::B(int n)
{Â
  cout << âB::B(â << n << â)nâ;
}
Â
Class D : Public B
{
public:
   D();
   D( int n);
private:
  B b;
};
Â
D::D()
{
  cout << âD::D()nâ;
}
Â
D::D(int n) : B(n)
{
  b = B(-n);
  cout << âD::D(â<< n <<â)nâ;
}
Â
What does the following program print?
int main()
{
 D d(3);
 return 0;
}
Â
Â
Â
Please provide outcome in C++ program, a text file, and screenshot (JPEG).
Â
Hel-----------lo -----------Sir-----------/Ma-----------dam----------- T-----------han-----------k y-----------ou -----------for----------- us-----------ing----------- ou-----------r w-----------ebs-----------ite----------- an-----------d a-----------cqu-----------isi-----------tio-----------n o-----------f m-----------y p-----------ost-----------ed -----------sol-----------uti-----------on.-----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am-----------Â -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll