Sign in Join
Wiki copytemporary

Constructor/fi: what changed

Revision 2 to 3. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
1-[[Reserved word/fi|Varattu sana]] `constructor` kuuluu [[object-oriented programming/fi|olio-ohjelmointiin]]. `Constructor` on luokan ([`class`](</index.php?title=Class/fi&action=edit&redlink=1> "Class/fi \(page does not exist\)")) rakentaja [metodi](</index.php?title=Method/fi&action=edit&redlink=1> "Method/fi \(page does not exist\)") joka luo luokan oliot.
1+[[Reserved word/fi|Varattu sana]] `constructor` kuuluu [[object-oriented programming/fi|olio-ohjelmointiin]]. `Constructor` on luokan ([[Class/fi|class]]) rakentaja [[Method/fi|metodi]] joka luo luokan oliot.
22
3-Esimerkki:
4-```
3+Esimerkki:
4+
5+``` pascal
56// Luokan määrittely
6- type
7- TKlasse = class
8- end;
9-
10- var
11- // Määritellään luokan olio
12- clsKlasse: TKlasse;
13-
14- begin
15- ...
16- // luodaan luokan olio
17- clsKlasse := TKlasse.Create;
18- ...
19- end;
7+type
8+ TKlasse = class
9+ end;
10+
11+var
12+ // Määritellään luokan olio
13+ clsKlasse: TKlasse;
14+
15+begin
16+ ...
17+ // luodaan luokan olio
18+ clsKlasse := TKlasse.Create;
19+ ...
20+end;
2021```
2122
2223## Katso myös
2324
24- * Olion purkaja ([[Destructor/fi|`destructor`]])
25+- Olion purkaja ([[Destructor/fi|destructor]])
2526
2627---
27-*From the Free Pascal wiki, page "Constructor/fi", as the Internet Archive kept it on 2023-03-20. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
28+*From the Free Pascal wiki, page "Constructor/fi", as it stood on 2022-08-06 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history