Question: 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:
\table[[Employee],[\table[[- empNo :int],[- empName :char[]],[- basicSalary :float]]],[\table[[+ Employee()],[+ Employee(empNo :int, empName :string, basicSalary :tloat)],[+ calculateSalary(basicSalary :float) :double]]]]
Step 1: Declare a class "Employee" in two separate namespaces namely SeniorEmp and JuniorEmp & store it in Employee.h
Step 2: Define all the member methods of Employee Class and store it in Employee.cpp
Employee (): to initialize the member variables to 0??NULL
Employee(EmpNo,EmpName,BasicSalary): To initialize the member variables with the parameters received
 Objective: To understand the implementation of Namespaces. Problem Description: Create the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!