DP Computer Science Questionbank
D.2 Features of OOP
Description
[N/A]Directly related questions
-
19M.2.SL.TZ0.11a:
The same method identifier
addSwimmers
is used in both classesRace
andEvent
.Explain why this does not cause a conflict.
-
19M.2.SL.TZ0.11c:
Outline how method overriding can help to create the new class
FinalsOnlyEvent
. -
19M.2.SL.TZ0.11b:
Outline two advantages of the OOP feature “inheritance”.
-
17N.2.SL.TZ0.12c:
The company that owns this restaurant also owns hotels, shops, and a car hire business. The programs that manage the finances of these different businesses include classes similar to the ones shown in this paper.
Explain how inheritance could be used as a tool to both improve the clarity of the design and to reduce the amount of code that needs to be written.
-
17N.2.SL.TZ0.12b:
By making reference to any of the classes from 12(a), describe two benefits that a programming team would gain from the use of encapsulation.
-
18N.2.SL.TZ0.10a.ii:
Describe two disadvantages of using Object Oriented Programming (OOP).
-
18N.2.SL.TZ0.11a:
Outline the use of data-hiding as a security feature in OOP.
-
18N.2.SL.TZ0.10a.iii:
Outline one advantage of using modularity in program development.
-
18N.2.SL.TZ0.11b.i:
The
Arrival
object has two methods namedcompareWith
.Outline why calling the
compareWith
method does not cause a conflict. - 18N.2.SL.TZ0.11b.ii: State the name of this OOP property.
-
19N.2.SL.TZ0.11b:
Explain one advantage of the OOP feature “inheritance” with reference to this scenario.
-
19N.2.SL.TZ0.11a:
Define the term inheritance.
-
19N.2.SL.TZ0.11e:
Outline two reasons why the use of multiple programming teams in different locations may be problematic when developing an integrated software solution.
-
19N.2.SL.TZ0.11c:
Describe two advantages of using libraries of classes.
-
20N.2.SL.TZ0.11b:
Outline two differences between inheritance and aggregation.
-
18M.2.SL.TZ0.10b:
With reference to the two methods with the same name in the
Points
class, explain the OOP feature that makes it possible to successfully implement either of these methods.