Class B             {                         Public:                                     Void b1();                         Protected:                                     Void b2();             };             Class A : public B             {                         Public:                                     Void a1();                         Protected: Void a2();             };             Class C: public A             {                         Public:                                     Void c1();             }; Void main...

70.2K

Verified Solution

Question

Programming

Class B

           {

                       Public:

                                   Void b1();

                       Protected:

                                   Void b2();

           };

           Class A : public B

           {

                       Public:

                                   Void a1();

                       Protected:

Void a2();

           };

           Class C: public A

           {

                       Public:

                                   Void c1();

           };

Void main ()

{

B temp1; A temp2; Ctemp3;

}

           

  1. Name all member functions of all classes visiblethrough temp1 in the main function?
  2. Name all member functions of all classes visiblethrough temp2 in the main function?
  3. Name all member functions of all classes visiblethrough temp3 in the main function?
  4. Which class is the parent of class A?
  5. Which class is the child of class A?

Answer & Explanation Solved by verified expert
4.5 Ratings (939 Votes)
    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students