Polymorphism/BASIC: Difference between revisions
Content added Content deleted
m (moved Polymorphism (BASIC) to Polymorphism/BASIC: structure as sub-page) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Programming-example-page|Polymorphism}} |
{{Programming-example-page|Polymorphism}} |
||
{{works with|QuickBasic|4.5}} |
|||
{{works with|PDS|7.1}} |
|||
<lang |
<syntaxhighlight lang="qbasic">DECLARE SUB PointInit0 (pthis AS Point) |
||
DECLARE SUB PointInit1 (pthis AS Point, x0 AS INTEGER) |
DECLARE SUB PointInit1 (pthis AS Point, x0 AS INTEGER) |
||
DECLARE SUB PointInit2 (pthis AS Point, x0 AS INTEGER, y0 AS INTEGER) |
DECLARE SUB PointInit2 (pthis AS Point, x0 AS INTEGER, y0 AS INTEGER) |
||
Line 159: | Line 160: | ||
SUB CirclePrint (pthis AS Circle) |
SUB CirclePrint (pthis AS Circle) |
||
PRINT "Circle" |
PRINT "Circle" |
||
END SUB</ |
END SUB</syntaxhighlight> |