Q1- [Marks 10]
Answer:
class patmng
{
Int ptn_no;
Date dob;
};
Class physin
{
int surgn no;
String fee;
};
Class operation
{
String operationpoint;
Bool targetachived;
}
;;
Q2- [Marks 10]
Answer:
effects of bad / poor object model on the final system::
It brings collapse to the overall project. Model poorly help the developers to get the solution accepted by the demanding organization. Reduced effort in maintenance and enhancement, resulting from inheritance, encapsulation, low coupling, and high cohesion.
. We can not well maintain our profit. Clarity and understandability of the system, as object-oriented approach is closer to the working of human cognition. Reusability of code resulting from low inter-dependence among objects, and provision of generalization and specialization through inheritance