Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
20 views
asked by Sr Member (4.8k points) 10 26 32

1 Answer

0 votes
class A {
  A() {
    System.out.println("Inside A's constructor.");
  }
}
 
class B extends A {
  B() {
    System.out.println("Inside B's constructor.");
  }
}
 
class C extends B {
  C() {
    System.out.println("Inside C's constructor.");
  }
}
 
class CallingCons {
  public static void main(String args[]) {
    C c = new C();
  }
}
 
answered by Expert (15k points) 15 23 32

Related questions

0 votes
1 answer 20 views
20 views asked by rock Expert (15k points) 15 23 32
0 votes
1 answer 18 views
18 views asked by keem Expert (13.2k points) 29 44 63
0 votes
1 answer 58 views
58 views asked by rock Expert (15k points) 15 23 32
0 votes
1 answer 17 views
17 views asked by john Guru (27.1k points) 35 53 115
0 votes
2 answers 10 views
10 views asked by smith Geek (15.3k points) 19 43 70
...