MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / Base

Class Base

Programs/derivedConstructor.java:4–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2package derivedConstructor;
3
4class Base {
5 public Base() {
6 System.out.println("Base class constructor called!"); // Will be called first
7 }
8 public Base(int x) {
9 System.out.println(x);
10 }
11}
12class Derived extends Base {
13 public Derived() {
14 System.out.println("Derived class constructor called!"); // Will be called after base class constructor

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected