Skip to content

Commit 98b9017

Browse files
authored
Add files via upload
1 parent dac7f33 commit 98b9017

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Interface/MoreAboutInterface.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
We can’t create instance(interface can’t be instantiated) of interface but we can make reference of it that refers to the Object of its implementing class.
3+
4+
A class can implement more than one interface.
5+
6+
An interface can extends another interface or interfaces (more than one interface) .
7+
8+
A class that implements interface must implements all the methods in interface.
9+
10+
All the methods are public and abstract. And all the fields are public, static, and final.
11+
12+
It is used to achieve multiple inheritance.
13+
14+
It is used to achieve loose coupling.

0 commit comments

Comments
 (0)