You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Derived.java 207B

123456789101112131415
  1. package sample;
  2. public class Derived extends Base {
  3. int y;
  4. public Derived() {
  5. super();
  6. y = 2;
  7. }
  8. public void foo() {}
  9. public static void main(String args[]) {
  10. new Derived();
  11. }
  12. }