This commit is contained in:
Alexander Pivkin
2025-09-05 14:14:21 +03:00
parent d7dc52283a
commit fd57dc9b95
6 changed files with 109 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
package gadget
import "fmt"
type TapePlayer struct {
batteries string
}
func (t TapePlayer) Play(song string) {
fmt.Println("Playing", song)
}
func (t TapePlayer) Stop() {
fmt.Println("Stopped")
}
type TapeRecorder struct {
Microphones int
}
func (t TapeRecorder) Play(song string) {
fmt.Println("Playing", song)
}
func (t TapeRecorder) Stop() {
fmt.Println("Stopped")
}