Abstract type: Difference between revisions

Content added Content deleted
(→‎{{header|C}}: Interface name should be quoted.)
m (→‎{{header|Go}}: Trim method name by guideline at http://golang.org/doc/effective_go.html#Getters)
Line 843:
Go's ''interface type'' is an abstract type. It defines a set of methods that a value must have.
<lang go>interface {
Method1Name(value float64) intstring
SetName(name string)
GetNameMethod1(value float64) stringint
}</lang>