- 11
Fill in the blanks to create an abstract class with an abstract method and inherit from it. abstract class Animal { public int
11 Réponses
+ 5
Do you need help to do this or is it an "assignement" you're posting ?
https://www.sololearn.com/discuss/1316935/?ref=app
https://www.sololearn.com/learn/Java/2166/
https://www.sololearn.com/learn/Java/2163/
+ 2
abstract
extends
int
+ 2
Through the Question Abstract?
abstract
extends
int
0
abstract class Animal {
public int age;
public
abstract
int printAge();
}
class Dog
extends
Animal {
public
int
printAge() {
return age;
}
}
0
abstract
extends
int
0
0
0
1. abstract 2. extends 3. int
0
abstract
extends
int
0
abstract
extends
int
- 1
abstract Fill in the blanks to define an abstract method Print for class A: