Will this program compile? If so what is the output if any. Enter no if it will
Fantastic news! We've Found the answer you've been seeking!
Question:
Will this program compile? If so what is the output if any.
Enter no if it will not compile or enter the output if it runs. If no output results enter none.
class Fruit { public Fruit(){ System.out.println("Hello"); } }
class Apple extends Fruit{ public Apple(){ super(); } }
public class RunIt { public static void main(String[] args) { Apple apple = new Apple(); } }
Related Book For
Accounting Information Systems
ISBN: 9780132871938
11th Edition
Authors: George H. Bodnar, William S. Hopwood
Posted Date: