Skip to content

This Python program demonstrates object-oriented programming (OOP) principles by creating a Personnel class with child classes for specific roles: Doctor, Surgeon, and Nurse. Each class has its own attributes, and methods are used to display relevant information.

Notifications You must be signed in to change notification settings

Pierreny/Personnel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3611d60 · Jan 14, 2025

History

5 Commits
Jan 14, 2025
Jan 14, 2025

Repository files navigation

Personnel

This Python program demonstrates object-oriented programming (OOP) principles by creating a Personnel class with child classes for specific roles: Doctor, Surgeon, and Nurse. Each class has its own attributes, and methods are used to display relevant information.

Features Personnel Class: The base class for storing common attributes such as name, age, and hourly rate. Methods: init() initializes attributes. display() prints the basic personnel details. Doctor Class: Inherits from Personnel and adds the specialty attribute. Method: displayDoctor() prints the Doctor's details including name, age, hourly rate, and specialty. Surgeon Class: Inherits from Personnel and adds the BoardCertified attribute. Method: displaySurgeon() prints the Surgeon's details including name, age, hourly rate, and BoardCertified status. Nurse Class: Inherits from Personnel and adds the rank attribute. Method: displayNurse() prints the Nurse's details including name, age, hourly rate, and rank. Technologies Used Python: The programming language used to implement the classes and methods.

About

This Python program demonstrates object-oriented programming (OOP) principles by creating a Personnel class with child classes for specific roles: Doctor, Surgeon, and Nurse. Each class has its own attributes, and methods are used to display relevant information.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages