Advertisement
desant74268

OOPHW

Jan 16th, 2022
716
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package ru.itsjava.oop.hw;
  2.  
  3. public class Main {
  4.     public static void main(String[] args) {
  5.         Bird par = new Parrot();
  6.         Bird rav = new Raven();
  7.  
  8.         System.out.println("par.toString() = " + par.toString());
  9.         System.out.println("rav.toString() = " + rav.toString());
  10.     }
  11. }
  12.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement