If a interface wants to inherate the properties of other interface so which keyword will be useful here? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

If a interface wants to inherate the properties of other interface so which keyword will be useful here?

25th Apr 2017, 8:59 AM
Aman Sharma
Aman Sharma - avatar
4 Answers
+ 10
An interface can be implemented, keyword 'implements'. 'Extends' is used to inherit from a class.
25th Apr 2017, 10:27 AM
Tashi N
Tashi N - avatar
+ 9
Pls add your example, thx.
26th Apr 2017, 12:42 PM
Tashi N
Tashi N - avatar
+ 1
extends
25th Apr 2017, 9:01 AM
Aman Sharma
Aman Sharma - avatar
0
but Tashi if you will do like this so it will show a compile time error.
26th Apr 2017, 7:07 AM
Aman Sharma
Aman Sharma - avatar