Abstract type: Difference between revisions
Content deleted Content added
→{{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 {
SetName(name string)
}</lang>
|