Examlex

Solved

​ Public Class ASuperClass

question 47

Essay

​ public class ASuperClass
{
   public ASuperClass()
   {
      System.out.println("In superclass constructor");
   }
}
public class ASubClass extends ASuperClass
{
   public ASubClass()
   {
      System.out.println("In subclass constructor");
   }
}
public class DemoConstructors
{
   public static void main(String[] args)
   {
      ASubClass child = new ASubClass();
   }
}

Given the above code, what will the output be when DemoConstructors executes?


Definitions:

Labour Coordination

The process of organizing and harmonizing the efforts and activities of workers to achieve efficient production or services.

Spans of Control

The number of employees or subordinates that a manager or supervisor is directly responsible for overseeing.

Functional Departmentation

The process of grouping together jobs and activities into departments based on similarity in functions like marketing, finance, human resources, etc.

Advantage

A condition or circumstance that puts someone or something in a favorable or superior position.

Related Questions