mirror of
https://github.com/bootdotdev/fcc-learn-golang-assets.git
synced 2025-12-19 03:31:16 +00:00
first
This commit is contained in:
5
course/5-interfaces/exercises/3-implicit/readme.md
Normal file
5
course/5-interfaces/exercises/3-implicit/readme.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# Interfaces are implemented implicitly
|
||||
|
||||
A type implements an interface by implementing its methods. Unlike in many other languages, there is no explicit declaration of intent, there is no "implements" keyword.
|
||||
|
||||
Implicit interfaces *decouple* the definition of an interface from its implementation. You may add methods to a type and in the process be unknowingly implementing various interfaces, and *that's okay*.
|
||||
Reference in New Issue
Block a user