Development
Nhat will be the output of following program? public cla
Sample { public static class Class A { public int a = 10;}
public static class Class B extends ClassA { public int a = 2
public ClassB( {a = 30; } public ClassB(int a){ a = a; } } pub
static void main(String[] args) { ClassA al = new ClassA();
System.out.println(al.a); Class B b1 = new ClassB(50);
System.out.print(""+ b1.a); Class A a2 = new ClassB();
System.out.print(""+a2.a); ClassA a3 = new ClassB(50):
System.out.print(""+a3.a); } }
Answers
Answered by
2
Answer:
The process by which green plants turn carbon dioxide and water into food using energy from sunlight
Similar questions