Which of these occurs in this code please?
composition
overriding
multiple inheritance
method chaining
polymorphism
overloading
How many are there of each of the following?
different operators Answer 3 (don't count
repeats of the same operator)
methods Answer 4
primitive type instance variables Answer 5
reference type instance variables Answer 6
(a) Match the following features to their correct names Code feature public Painting (String aTitle, int aYear, int aValue, Artist anArtist) private int yearPainted; artist.getIsMaster() && yearPainted < 1800 result = false; = anArtist (b) Which of the following features occur? (Tick the col composition overriding multiple inheritance Omethod chaining Opolymorphism overloading Name Choose... Choose... Choose... Choose... Choose... ✓ Choose... operand formal parameter signature field declaration local variable declaration method header operator variable initialisation literal expression actual parameter constructor header ◆ ◆ ◆ ◆
Which of these occurs in this code please? composition overriding multiple inheritance method chaining polymorphism over
-
- Posts: 43759
- Joined: Sat Aug 07, 2021 7:38 am