Write a program to display details of the Developer using Multilevel Inheritance. 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 a class named Person with the following protected member variables. DataType string string Variable name gender The derived class named Employee derived from Person with the following public member variables. DataType int int Variable experience empld The derived class named Developer derived from Employee with the following public member variables. DataType string string Variable skills role Include a constructor with parameters passed in the same order given below Developer(string name,string gender,int experience,int empld,string skills,string role):Employee(name,gender,experience,empld) Include the following public member function in the Developer class Member Function void displayDetails( Description This method is used to display all the details of the developer In the main method, read inputs from the console and access the displayDetails method by creating the instances.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

QUESTION PROVIDED IN ATTACH IMAGE KINDLY SEE. AND BELOW TEMPLATES PROVIDED CHECK THIS BEFORE MAKING SOLUTION ( main.cpp , employee.h , developer.cpp , person.h  )

--------------TEMPLATES BELOW---------------------

main.cpp template

#include <iostream>
using namespace std;
#include "Developer.cpp"
int main()
{
string name,skills,role,gender;
int empId,experience;


//fill your code

return 0;
}

 

employee.h template

#include<iostream>
using namespace std;
#include "Person.h"
class Employee:public Person{
protected:
int experience;
int empId;
public:
Employee(){}

Employee(string name,string gender,int experience, int empId):Person(name,gender)
{
this->experience=experience;
this->empId=empId;
}


};

 

Developer.cpp template

#include<iostream>
using namespace std;
#include "Employee.h"
class Developer: public Employee{
private:
string skills;
string role;

public:
Developer(){}

//fill your code

void displayDetails()
{

//fill your code


}
};

 

 

Person.h  template

#include<iostream>
using namespace std;
class Person{
protected:
string name;
string gender;
public:
Person(){}

Person(string name,string gender)
{
this->name=name;
this->gender=gender;
}


};
Write a program to display details of the Developer using Multilevel Inheritance.
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 a class named Person with the following protected member variables.
DataType
string
string
Variable
name
gender
The derived class named Employee derived from Person with the following public
member variables.
Variable
experience
empld
DataType
int
int
The derived class named Developer derived from Employee with the following public
member variables.
DataType
string
string
Variable
skills
role
Include a constructor with parameters passed in the same order given below
Developer(string name,string gender,int experience,int empld,string skills,string
role):Employee(name,gender,experience,empld)
Include the following public member function in the Developer class
Member Function
void displayDetails()
Description
This method is used to display all the details of the developer
In the main method, read inputs from the console and access the displayDetails method by
creating the instances.
Input and Output format:
Refer sample input and output for formatting specifications.
[All text in bold corresponds to input and the rest corresponds to output]
Sample Input and Output 1:
Enter the name
Harry
Enter the gender
Male
Enter the experience
8
Enter the employee id
Enter the technical skills of the developer
HTML,CSS,Java,Groovy,MYSQL
Enter the role of the developer
Fullstack
Developer Details
Name : Harry
Gender :Male
Experience :8 years
Employee Id: 5
Technical Skills :HTML,CSS,Java,Groovy,MYSQL
Role : Fullstack
Sample Input and Output 2:
Enter the name
Graf
Enter the gender
Female
Enter the experience
10
Enter the employee id
2
Enter the technical skills of the developer
HTML,CSS,Javascript
Enter the role of the developer
Frontend
Developer Details
Name: Graff
Gender : Female
Experience : 10 years
Employee Id: 2
Technical Skills:HTML,CSS,Javascript
Role : Frontend
Transcribed Image Text:Write a program to display details of the Developer using Multilevel Inheritance. 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 a class named Person with the following protected member variables. DataType string string Variable name gender The derived class named Employee derived from Person with the following public member variables. Variable experience empld DataType int int The derived class named Developer derived from Employee with the following public member variables. DataType string string Variable skills role Include a constructor with parameters passed in the same order given below Developer(string name,string gender,int experience,int empld,string skills,string role):Employee(name,gender,experience,empld) Include the following public member function in the Developer class Member Function void displayDetails() Description This method is used to display all the details of the developer In the main method, read inputs from the console and access the displayDetails method by creating the instances. Input and Output format: Refer sample input and output for formatting specifications. [All text in bold corresponds to input and the rest corresponds to output] Sample Input and Output 1: Enter the name Harry Enter the gender Male Enter the experience 8 Enter the employee id Enter the technical skills of the developer HTML,CSS,Java,Groovy,MYSQL Enter the role of the developer Fullstack Developer Details Name : Harry Gender :Male Experience :8 years Employee Id: 5 Technical Skills :HTML,CSS,Java,Groovy,MYSQL Role : Fullstack Sample Input and Output 2: Enter the name Graf Enter the gender Female Enter the experience 10 Enter the employee id 2 Enter the technical skills of the developer HTML,CSS,Javascript Enter the role of the developer Frontend Developer Details Name: Graff Gender : Female Experience : 10 years Employee Id: 2 Technical Skills:HTML,CSS,Javascript Role : Frontend
Expert Solution
steps

Step by step

Solved in 5 steps with 6 images

Blurred answer
Knowledge Booster
Database connectivity
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education