Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3 . Case study: Suppose you are tasked with designing a program to manage company employees. The requirements include defining different types of employees, such

3.Case study: Suppose you are tasked with designing a program to manage company employees. The requirements include defining different types of employees, such as fulltime, part-time, and contractual, each with specific attributes and behaviors. Implement the necessary structures, interfaces, abstract classes, and inheritance to fulfill these requirements. 3.1 a). Define a structure named "Address" with the following fields:
string Street
string City
string State
int ZipCode
b). Define an interface named IEmployee with the following methods:
void DisplayDetails0: This method should display the employee's details.
double CalculateSalary0: This method should calculate and return the employee's salary.
c). Define an abstract class named Employee that implements the IEmployee interface and has the following properties and methods:
Properties:
int Employeeld
string FullName
Address EmployeeAddress
Methods:
abstract double CalculateSalary(): This method should be implemented by derived
classes to calculate the salary of specific types of employees.
Virtual void DisplayDetails(): This method should display the employee's details.
(25marks)
NOTE: code in C#
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions