Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ru.itsjava.oop.oopHW;
- public class Main {
- public static void main(String[] args) {
- Lion myfasa = new Lion("Myfasa");
- Lion shram = new Lion("Shram");
- myfasa.sayR();
- shram.sayR();
- Human dima = new Human("Dmitriy", 30);
- dima.greeting();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement