sing C++ Create these classes using only 1 file (and draw the structure in your comments at the top of your program) For each class create these features: A private variable that can only be accessed by that class. A protected variable that can only be accessed by that class or children of that class. Getter and Setter functions for accessing the private data of the class. A Constructor that outputs the name of the class whenever it is used to instantiate or construct a class object. Example: "Class A object constructed."   Comments that describe exactly how the class is structured and what are it's features (superclass, subclass, overloading, etc). Add any variables or functions you deem necessary, but be sure to describe how they work using comments and the couts as required below.   Multi-level Classes consisting of 3 classes (A, B, and C, with A as top superclass). In class A, add a set of public overloading functions for printing out different data types.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Using C++

  • Create these classes using only 1 file (and draw the structure in your comments at the top of your program)
    • For each class create these features:
      • A private variable that can only be accessed by that class.
      • A protected variable that can only be accessed by that class or children of that class.
      • Getter and Setter functions for accessing the private data of the class.
      • A Constructor that outputs the name of the class whenever it is used to instantiate or construct a class object.

Example: "Class A object constructed."

    •  
      • Comments that describe exactly how the class is structured and what are it's features (superclass, subclass, overloading, etc).
      • Add any variables or functions you deem necessary, but be sure to describe how they work using comments and the couts as required below.

 

    • Multi-level Classes consisting of 3 classes (A, B, and C, with A as top superclass).
      • In class A, add a set of public overloading functions for printing out different data types.

Example: print(int param), print(double param), and print(string param)

 

    • Multiple Classes consisting of 2 new classes (C and D as superclasses and E as subclass).
      • Class C is the same class as in the Multi-level classes above.

 

    • Hierarachical Classes consisting of 2 new classes (D as the superclass with E, F, and G as subclasses).
      • Classes D and E are the same classes as described in the Multiple Classes above

 

 

    • Function main() should show off all the features of the classes including:
      • Use "cout" to describe exactly what is going on so that I don't have to guess and can easily grade it. If I have to hunt for features, the grade will be lower.
        • Examples:
          • "Object a has been instantiated from class A."
            • "Observe how function overloading works in a class A object..."
            • "Observe how function overloading works in a class B object, a child of class A..."
          • "See how private_x can be changed directly..."
          • "See how private_x can be changed by object g..."
          • "Object c has been instantiated."
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY