Public Class Painting Private String Title Private Int Yearpainted Private Int Value Private Artist 1 (70.53 KiB) Viewed 71 times
Public Class Painting Private String Title Private Int Yearpainted Private Int Value Private Artist 2 (13.34 KiB) Viewed 71 times
(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 Name Choose.. Choose... operand local variable declaration field declaration signature formal parameter variable initialisation operator literal actual parameter constructor header method header expression Choose...
(b) Which of the following features occur? (Tick the correct ones) polymorphism multiple inheritance method chaining composition overloading overriding (c) How many are there of each of the following? (Type in a digit, not a word) different operators (don't count repeats of the same operator) methods primitive type instance variables reference type instance variables
(d) Select the sets of variables that have the same scope artist, anArtist avalue, anArtist isoldMaster, result yearPainted, result title, anArtist artist, title
Register for solutions, replies, and use board search function. Answer Happy Forum is an archive of questions covering all technical subjects across the Internet.