fork download
  1. class Person{
  2. public Person(){
  3. System.out.println("I'm a person.");
  4. }
  5. }
  6. class Man extends Person{
  7. public Man(){
  8. System.out.println("I'm a man.");
  9. }
  10. }
  11. public class Main{
  12. public static void main(String[] args){
  13. Man i = new Man();
  14. }
  15. }
Success #stdin #stdout 0.05s 213440KB
stdin
Standard input is empty
stdout
I'm a person.
I'm a man.