20.1 Programming paradigms
22 questions in this subtopic. Open a question to solve it and check the official answer.
Programming paradigms · 7 marks · official answer ready
(a) Complete the class diagram showing the appropriate properties and methods. StockItem Title: STRING ...................................................................... .....…
Programming paradigms · 3 marks · official answer ready
(i) for the class definition for the superclass StockItem. Programming language ...................................................................................................…
Programming paradigms · 3 marks · official answer ready
(ii) for the class definition for the subclass Book. Programming language ..................................................................................................... ...…
Programming paradigms · 3 marks · official answer ready
(iii) to create a new instance of Book with: • identifier NewBook • title “Computers” • author A.Nyone • ISBN 099111 • acquired on 12/11/2001 • not out on loan Programming languag…
Programming paradigms · 7 marks · official answer ready
(a) Complete the class diagram showing the appropriate properties and methods. StockItem Title: STRING ...................................................................... .....…
Programming paradigms · 3 marks · official answer ready
(i) for the class definition for the superclass StockItem. Programming language ...................................................................................................…
Programming paradigms · 3 marks · official answer ready
(ii) for the class definition for the subclass Book. Programming language ..................................................................................................... ...…
Programming paradigms · 3 marks · official answer ready
(iii) to create a new instance of Book with: • identifier NewBook • title “Computers” • author A.Nyone • ISBN 099111 • acquired on 12/11/2001 • not out on loan Programming languag…
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 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…
