Question: it's object oriented programming guys need your help please 14 - Does a subclass inherit both member variables and methods? a) Yes--but only one or
it's object oriented programming guys need your help please


14 - Does a subclass inherit both member variables and methods? a) Yes--but only one or the other are inherited. b) Yes--both are inherited. c) O No--only methods are inherited. d) No-only member variables are inherited. Leave blank 15- list1 is an arraylist which stores String information. What will be the output of the following code segment ? listi.add("Anaya"); listl.add("Layla"); listl.add("Sharrie"); listl.set(0, "Destini"); listl.add(0, "Sarah"); System.out.println(listi); a) O ["Sarah", "Destini", "Layla", "Sharrie"] b) ["Sarah", "Layla", "Sharrie"] c) ["Sarah", "Destini", "Anaya", "Layla", "Sharrie"] d) ["Destini", "Layla", "Sharrie", "Sarah"] d Leave blank
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
