Advertisement
Filipinex

CInterFish

Mar 19th, 2024
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. import greenfoot.*;  
  2.  
  3.  
  4. public abstract class CInterFish extends CMotherFish
  5. {
  6.     //materska trieda interagujucich ryb
  7.     public CInterFish(int size)
  8.     {
  9.         super(size); //volanie konstruktora pre size
  10.     }
  11.    
  12.     public abstract void InteractWithFish(CFish fish);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement