Jump to content

Abstract type: Difference between revisions

m
→‎{{header|Go}}: Trim method name by guideline at http://golang.org/doc/effective_go.html#Getters
(→‎{{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>
 
1,707

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.