Question: please anyone help me on this ! Java programming IDE eclips Thank u Does field i' of Class A be inherited to Class B in




Does field i' of Class A be inherited to Class B in the below code? class A{ protected int i; } class B extends A{ True False A class can implement more than one interface? True False Which line has an error? interface A{ final int k = 8; // Line 1 private int m; // Line 2 public void a Method(); // Line 3 String fun(Char s); // Line 4 } O Line 1 Line 2 Line 3 Line4 Does a subclass inherit both member variables and methods? No--only member variables are inherited. No-only methods are inherited. Yes--both are inherited. Yes--but only one or the other are inherited. What will be the output of the following program? Assume that all the classes belong to the same package class CURD public static void main(String[] args) { new C().create(); new D().update(); new R().read(); new D().delete(); > class C public void create() { System.out.print("");) > class U private void update() { System.out.print(""); } > class R extends C public void create() (System.out.print("C"); } protected void read() { System.out.print("R"); ) > class D extends U void update() { System.out.print("u"); ) void delete() { System.out.print("D");) > CURD CURD CURD Compilation Cror
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
