We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e4667f commit 4c4fbb7Copy full SHA for 4c4fbb7
Section14Interfaces/src/Interfaces.txt
@@ -2,10 +2,10 @@ An interface in Java contributes to polymorphism by defining a contract for impl
2
3
It declares a set of abstract methods that must be implemented by any class that implements the interface.
4
5
-This allows for polymorphic behavior, as different classes can provide their own implementations of the interface methods.
+This allows for polymorphic behavior, as different classes can provide their own implementations of the interface
6
+methods.
7
8
Objects of these implementing classes can be treated as instances of the interface type, enabling runtime polymorphism
-
9
and promoting loose coupling in the code.
10
11
This code shows an interface Animal with a method makeSound().
0 commit comments