Question: What is the output of the below Java program with an abstract class? _ _ _ _ _ _ _ _ abstract class Coffee {

What is the output of the below Java program with an abstract class? ________
abstract class Coffee
{
Coffee()
{
System.out.println("Inside Constructor of Coffee..");
}
}
class ColdCoffee extends Coffee
{
ColdCoffee()
{
System.out.println("Inside Constructor of ColdCoffee..");
}
}
public class AbstractClassTesting
{
public static void main(String[] args)
{
ColdCoffee cf = new ColdCoffee();
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!