Now I have two classes, called the patient and the doctor:
Patient() { public: //functions here private: Doctor doctor; Date dateAdmitted; Date dateDischarged; } Doctor() { public: //functions here private: //data members here }
In my UML class diagram for patient class, do I need to include the doctor and date as an attribute? or am I just representing them, linking them as an association?
If the attribute should look like this:
doctor: doctor
dateAdmitted: Date
dateDischarged: Date
UML : ( ) , . , , .. . UML.
, , :
, "int", "boolean" "date" , (inoult ). , , (, , ..) "" .
: , ( , End). Patient:
, , ( atts, ), :
( )
: , Whole-Part , . (Patient-Doctor) , (, -).
UML . .
, , , . Java .
Source: https://habr.com/ru/post/1537826/More articles:Какова минимальная целевая архитектура процессора для различных версий Visual Studio? - visual-c++Symfony2 / Twig - Need to useEncode video for ipod classic - ffmpegScala macro for printing code? - scalaHow to get portrait_id, Landscape_id and domain information for android from recovery server - androidgetting domain data and portrait_id and landscape_id for openX - androidOr not both sentences in select sql - sqlThe difference in functionality between the instance created by the class loader and the new keyword - javaAdding a column in python CSV and listing it - pythonHow to pass value from javascript to php controller in laravel? - jsonAll Articles