Hi,
Can anybody tell me whats a suited name for a cow in this exercise?
Best regards
Steffen
package de.codegym.task.task12.task1214;
/*
Kühe sind auch Tiere
*/
public class Solution {
public static void main(String[] args) {
}
public static abstract class Animal {
public abstract String getName();
}
public class Cow extends Animal{
private String name = "Milka";
Cow(String name){
this.name = name;
}
public String getName(){
return name;
}
}
}