package com.codegym.task.task13.task1308;
/*
Hey, are you alive?
*/
public class Solution {
public static void main(String[] args) throws Exception {
interface Person {
public void isAlive()
{
// return true;
}
}
interface Presentable implements Person {
public void isAlive(){}
}
}
}
can anyone tell me where i am wrong
Under discussion
Comments (5)
- Popular
- New
- Old
You must be signed in to leave a comment
cute bear
6 April 2019, 04:07
I remember interface and interface use extends keywords.
+1
Angeget
2 April 2019, 10:03
As Guadalupe answed the isAlive methode should habe a return type.
As per last requirement The isAlive method's return type must have only two possible values.
The data type boolean hava only two possible values true or false.
+1
Guadalupe Gagnon
1 April 2019, 15:17
Don't copy and paste code on questions, do this:
.

0
Guadalupe Gagnon
1 April 2019, 15:17
In your code the isAlive method has not return value, however the method name implies that it should.
0
Aakash potepalli
5 April 2019, 08:46
yeah . I got it . Thanks
0