Back to Browse

Inheritance using DT framework | OOP using JAVA | SNS Institutions

47 views
Aug 12, 2025
5:29

#snsinstitutions #snsdesignthinkers #designthinking Inheritance in Hospital Management System using Design Thinking Framework The Hospital Management System (HMS) can use inheritance to manage different roles and entities efficiently. Applying the Design Thinking Framework, the development follows five phases: Empathize – Understand the needs of doctors, nurses, patients, and administrators. Common requirements include storing personal details, scheduling, billing, and record management. Define – Identify that many entities share similar attributes like name, address, contactNumber, and id. A base class Person can store these common features. Ideate – Plan an inheritance hierarchy: Base Class: Person – Common attributes and methods such as getDetails() and updateContact(). Derived Classes: Doctor – Adds specialization, consultationFee, schedule(). Nurse – Adds assignedWard, shiftTiming. Patient – Adds medicalHistory, admissionDate. Another hierarchy could be MedicalRecord as a base, with subclasses InpatientRecord and OutpatientRecord. Prototype – Develop a small module where these classes interact. For example, a Doctor object can access Person attributes and also perform role-specific functions like prescribing medicine. Test – Validate if code reusability and scalability are achieved. For instance, adding a Surgeon class requires no change in Person but extends Doctor. Benefits: Inheritance minimizes code duplication, ensures maintainability, and supports scalability. The is-a relationship (Doctor is-a Person, Patient is-a Person) keeps the HMS structure organized, fulfilling both technical efficiency and user needs identified in the empathize phase

Download

0 formats

No download links available.

Inheritance using DT framework | OOP using JAVA | SNS Institutions | NatokHD