Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Objective: To understand the implementation of Namespaces. Problem Description: Create the following class: table [ [ Employee ] , [ table [ [
Objective: To understand the implementation of Namespaces.
Problem Description: Create the following class:
tableEmployeetable empNo :int empName :char basicSalary :floattable Employee EmployeeempNo :int, empName :string, basicSalary :tloat calculateSalarybasicSalary :float :double
Step : Declare a class "Employee" in two separate namespaces namely SeniorEmp and JuniorEmp & store it in Employee.h
Step : Define all the member methods of Employee Class and store it in Employee.cpp
Employee : to initialize the member variables to
EmployeeEmpNoEmpName,BasicSalary: To initialize the member variables with the parameters received
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started