Single inheritance enables a derived class to inherit properties and behavior from a single parent class. It allows a derived class to inherit the properties and behavior of a base class, thus enabling code reusability as well as adding new features to the existing code. Strictly adhere to the Object-Oriented specifications given in the problem statement. All class names, member variable names, and function names should be the same as specified in the problem statement. Consider an Event class with the following protected member variables Data Type string string string Member Variable name type organizer

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
100%

QUESTION PROVIDED IN ATTACH IMAGE KINDLY SEE. PROVIDE OUTPUT AS IT IS SHOWN IN QUESTION.

 

AND BELOW TEMPLATES PROVIDED CHECK THIS BEFORE MAKING SOLUTION ( main.cpp , stageevent.cpp  , event.cpp)

----------------- TEMPLATES BELOW FOR SOLUTION -----------------------

 

main.cpp

#include <iostream>
using namespace std;
#include "StageEvent.cpp"
int main() {

//Fill your code here

}

 

Stageevent.cpp

#include<iostream>
using namespace std;
#include "Event.cpp"
class StageEvent : // Fill your code
{
// Fill your code

void display() {

// Fill your code
}

};

 

Event.cpp

#include<iostream>
using namespace std;
class Event {

//Fill your code here

};

Single inheritance enables a derived class to inherit properties and behavior from a single parent
class. It allows a derived class to inherit the properties and behavior of a base class, thus enabling
code reusability as well as adding new features to the existing code.
Strictly adhere to the Object-Oriented specifications given in the problem statement. All class
names, member variable names, and function names should be the same as specified in the problem
statement.
Consider an Event class with the following protected member variables
Data Type
string
string
string
Create default constructor and a parameterized constructor with arguments in order Event(string
Member Variable
name
type
organizer
name, string type, string organizer).
Include appropriate getters and setters.
Consider a derived class StageEvent derived from Event class with the following private member
variables
Data Type
string
string
string
Member Variable
show
startDate
endDate
Create default constructor and a parameterized constructor with arguments in order
StageEvent(string show, Date startDate, Date endDate).
Include appropriate getters and setters.
Include the following method in StageEvent class
Method
Name
Method Description
This function is used to display the name,type,organizer,show,startDate and
endDate.
void display()
In the Main method get Event details from the user and access the base class using the derived class
object and call the display method to display the details.
Input and Output format:
Refer sample Input and Output for formatting specifications.
Sample Input and Output :
[All text in bold corresponds to input and the rest corresponds to output]
Enter Event name
Magic-Show
Enter Event type
Entertainment
Enter organizer
Kalai
Enter show details
АВС Magic_Show
Enter start time
11/6/2018
Enter end time
15/6/2018
Event details:
Event name: Magic-show
Event type: Entertainment
Event organizer: Kalai
Show details: ABC_magic_show
Start date: 11/6/2018
End date: 15/6/2018
Transcribed Image Text:Single inheritance enables a derived class to inherit properties and behavior from a single parent class. It allows a derived class to inherit the properties and behavior of a base class, thus enabling code reusability as well as adding new features to the existing code. Strictly adhere to the Object-Oriented specifications given in the problem statement. All class names, member variable names, and function names should be the same as specified in the problem statement. Consider an Event class with the following protected member variables Data Type string string string Create default constructor and a parameterized constructor with arguments in order Event(string Member Variable name type organizer name, string type, string organizer). Include appropriate getters and setters. Consider a derived class StageEvent derived from Event class with the following private member variables Data Type string string string Member Variable show startDate endDate Create default constructor and a parameterized constructor with arguments in order StageEvent(string show, Date startDate, Date endDate). Include appropriate getters and setters. Include the following method in StageEvent class Method Name Method Description This function is used to display the name,type,organizer,show,startDate and endDate. void display() In the Main method get Event details from the user and access the base class using the derived class object and call the display method to display the details. Input and Output format: Refer sample Input and Output for formatting specifications. Sample Input and Output : [All text in bold corresponds to input and the rest corresponds to output] Enter Event name Magic-Show Enter Event type Entertainment Enter organizer Kalai Enter show details АВС Magic_Show Enter start time 11/6/2018 Enter end time 15/6/2018 Event details: Event name: Magic-show Event type: Entertainment Event organizer: Kalai Show details: ABC_magic_show Start date: 11/6/2018 End date: 15/6/2018
Expert Solution
steps

Step by step

Solved in 4 steps with 6 images

Blurred answer
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