Skip to content

Commit ce1b9c2

Browse files
authored
Update MoreAboutInterface.txt
1 parent 98b9017 commit ce1b9c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Interface/MoreAboutInterface.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
A class that implements interface must implements all the methods in interface.
99

10-
All the methods are public and abstract. And all the fields are public, static, and final.
10+
In Java, all methods in an interface are public even if we do not specify public with method names. Also, data fields are public static final even if we do not mention it with fields names. Therefore, data fields must be initialized.
1111

1212
It is used to achieve multiple inheritance.
1313

14-
It is used to achieve loose coupling.
14+
It is used to achieve loose coupling.

0 commit comments

Comments
 (0)