Question: java programming (IDE Eclips ) What will be the output of the following program? Assume that all the classes belong to the same package class
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("u"); } } class R extends C { public void create() { System.out.print("C"); } protected void read() { System.out.print("R"); } 3 class D extends U { void update() { System.out.print("U"); } void delete() { System.out.print("D"); } 3 CURD CURD CURD Compilation Error
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
