inheritance-method-specialization

command module
v0.0.0-...-1585098 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

README

Inheritance Method Specialization

This example shows a common (base) struct used to compose two separate, derived classes that implement the same interface. Each concrete class will implement the same method, Behavior(), in a different way -- by returning a different value.

The base struct (class) does not implement the interface and would therefore be considered an abstract class.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL