Look at the cat.〔 〕 name is Kitty kitty is the name of a cat.为什么...
作者&投稿:邲浦
2024-06-30
求帮忙。用java完成下题
Look at the cat.〔 its〕 name is Kitty
看那只猫,它的名字叫kitty。
Look at the cat.Its name is Kitty.
Look at the cat.〔it 〕 name is Kitty
Its
它的
你是否需要了解?
Kitty类的代码:
public class Kitty extends Cat {
public Kitty(String name) {
super(name);
}
@Override
public void walk() {
System.out.println("The cat is walking");
}
}
KittyTest类的代码:
public class KittyTest {
public static void main(String[] args) {
Kitty kitty = new Kitty("smallCat");
kitty.walk();
}
}
我运行过了,代码没问题。输出的信息是:
The cat name is smallCat
The cat is walking
采纳啊!
play with kitty the cat
全部释义和例句>>玩猫的猫
play with kitty the cat
全部释义和例句>>玩猫的猫
Look at the cat.〔 its〕 name is Kitty
看那只猫,它的名字叫kitty。
Look at the cat.Its name is Kitty.
Look at the cat.〔it 〕 name is Kitty
Its
它的
你是否需要了解?