20.1 Programming paradigms
192 questions in this subtopic. Open a question to solve it and check the official answer.
Programming paradigms · 4 marks · official answer ready
(i) State the properties and/or methods required for the subclass HourlyPaidEmployee. .............................................................................................…
Programming paradigms · 2 marks · official answer ready
(ii) State the properties and/or methods required for the subclass SalariedEmployee. ..............................................................................................…
Programming paradigms · 1 mark · official answer ready
(d) Name the feature of object-oriented program design that allows the method CalculatePay to be declared in the superclass Employee. .............................................…
Programming paradigms · 3 marks · official answer ready
(a) Draw an inheritance diagram for these classes. [3]
Programming paradigms · 5 marks · official answer ready
(b) The design for the Employee class consists of: • properties • EmployeeName • EmployeeID • AmountPaidThisMonth • methods • SetEmployeeName • SetEmployeeID • CalculatePay Write …
Programming paradigms · 4 marks · official answer ready
(i) State the properties and/or methods required for the subclass HourlyPaidEmployee. .............................................................................................…
Programming paradigms · 2 marks · official answer ready
(ii) State the properties and/or methods required for the subclass SalariedEmployee. ..............................................................................................…
Programming paradigms · 1 mark · official answer ready
(d) Name the feature of object-oriented program design that allows the method CalculatePay to be declared in the superclass Employee. .............................................…
Programming paradigms · 3 marks · official answer ready
(a) Draw an inheritance diagram for these classes. [3]
Programming paradigms · 5 marks · official answer ready
(b) The design for the Member class consists of • properties • MemberName • MemberID • SubscriptionPaid • methods • SetMemberName • SetMemberID • SetSubscriptionPaid 9 Write progr…
Programming paradigms · 3 marks · official answer ready
(i) Write program code for the class definition for the subclass JuniorMember. ....................................................................................................…
Programming paradigms · 3 marks · official answer ready
(ii) Write program code to create a new instance of JuniorMember. Use identifier NewMember with the following data: name Ahmed with member ID 12347, born on 12/11/2001, who has pa…
