mirror of
https://github.com/MADTeacher/go_basics.git
synced 2025-11-23 21:34:47 +02:00
21 lines
281 B
Go
21 lines
281 B
Go
package shape
|
|
|
|
type IShape interface {
|
|
GetArea() float64
|
|
GetPerimeter() uint
|
|
MoveCenter(point Point)
|
|
GetCenter() Point
|
|
}
|
|
|
|
type IShapeArea interface {
|
|
GetArea() float64
|
|
}
|
|
|
|
type IShapePerimeter interface {
|
|
GetPerimeter() uint
|
|
}
|
|
|
|
type IShapeName interface {
|
|
GetName() string
|
|
}
|