*polished indent and new line format of sample code.
This commit is contained in:
parent
93d663365f
commit
eeff6d28d2
@ -3,21 +3,21 @@
|
||||
' For more information, see https://github.com/paladin-t/my_basic/
|
||||
|
||||
class animal
|
||||
def speak(a)
|
||||
print "default" + a;
|
||||
enddef
|
||||
def speak(a)
|
||||
print "default" + a;
|
||||
enddef
|
||||
endclass
|
||||
|
||||
class cat(animal)
|
||||
def speak(a)
|
||||
print "meow" + a;
|
||||
enddef
|
||||
def speak(a)
|
||||
print "meow" + a;
|
||||
enddef
|
||||
endclass
|
||||
|
||||
class dog(animal)
|
||||
def speak(a)
|
||||
print "bark" + a;
|
||||
enddef
|
||||
def speak(a)
|
||||
print "bark" + a;
|
||||
enddef
|
||||
endclass
|
||||
|
||||
c = new(cat)
|
||||
|
Loading…
x
Reference in New Issue
Block a user