Home

  1 package de.javafish;
  2 
  3 public class Developer {
  4     String cert;
  5     String[] skills;
  6     public Developer(String c, String[] s) { cert = c; skills = s; }
  7 }
  8 
  9 class Trainer extends Developer {
 10     public Trainer(String c, String[] s) { super(c, s); }
 11 }
 12 
 13 class Client {
 14     public static void main(String[] args) {
 15         Developer javafish
 16                 = new Trainer("OCP - Java Programmer",
 17                     new String[] {
 18                         "Java",
 19                         "Android",
 20                     });
 21     }
 22 }
 23