- iPhone topik
- Betiltották a Pixel 7-et Japánban
- Magisk
- Hová lett 1000 mAh?
- Samsung Galaxy S23 és S23+ - ami belül van, az számít igazán
- Samsung Galaxy S25 - végre van kicsi!
- Samsung Galaxy A12 - idén sem erősebb
- Milyen okostelefont vegyek?
- Samsung Galaxy S25 Ultra - titán keret, acélos teljesítmény
- Apróbb óra érkezik a OnePlustól
Aktív témák
-
_thomas_
tag
up!
-
_thomas_
tag
hi!
tehát adott egy saját fejlesztésű osztály (a TObject a közvetlen őse), egy objektuma.
hogyan menthetem el a vinyóra, hogy később vissza tudjam tölteni és módosítani az tulajdonságait?
konkrétan:
{alul látható az osztály, az ebből létrehozott objektumot szeretném a vinyóra menteni JAVA-ban ezt a serializable interface-el lehetett megtenni. itt hogyan lehetne? most térek át javaról delphire és sokminden máshogy vagy mint amit eddig megszoktam, ami nem is baj, csak nagyon kellene tudnom ezt műveletet}
unit Pilot;
interface
uses Graphics;
type TPilot=class
private
name : string;
pole : byte;
year : byte;
team : string;
image : TPicture;
public
function getName() : string;
procedure setName(new : string);
function getPole() : byte;
procedure setPole(how : byte);
function getYear() : byte;
procedure setYear(new : byte);
function getTeam() : string;
procedure setTeam(aTeam : string);
procedure setImage(newImage : TPicture);
function getImage() : TPicture;
published
constructor create(name : string);
constructor createFull(name : string;team : string;
year : byte;pole : byte;image : TPicture);
property driver_name : string read name write setName;
end;
implementation
uses sysutils;
constructor TPilot.create(name : string);
begin
self.name := name;
end;
constructor TPilot.createFull(name : string;team : string;
year : byte;pole : byte;image : TPicture);
begin
self.name := name;
self.team := team;
self.year := year;
self.pole := pole;
self.image := TPicture.Create;
end;
function TPilot.getName() : string;
begin
getName := name;
end;
procedure TPilot.setName(new : string);
begin
name := new;
end;
function TPilot.getPole() : byte;
begin
getPole := pole;
end;
procedure TPilot.setPole(how : byte);
begin
self.pole := how;
end;
function TPilot.getYear(): byte;
begin
getYear := year;
end;
procedure TPilot.setYear(new : byte);
begin
self.year := new;
end;
function TPilot.getTeam(): string;
begin
getTeam := team;
end;
procedure TPilot.setTeam(aTeam : string);
begin
team := aTeam;
end;
procedure TPilot.setImage(newImage : TPicture);
begin
image := newImage;
end;
function TPilot.getImage() : TPicture;
begin
getImage := image;
end;
end.
köszönöm a hsz-eket!
Aktív témák
- Bomba ár! HP ProBook 450 G10 - i5-1335U I 16GB I 256SSD I 15,6" FHD I Cam I W11 I Garancia!
- Bomba ár! HP ProBook 440 G10 - i5-1335U I 16GB I 256SSD I 14" FHD I Cam I W11 I Garancia!
- Bomba ár! HP ProBook 470 G5 - i7-8GEN I 16GB I 256SSD I 17,3" FHD I Nvidia I W11 I Cam I Garancia!
- Bomba ár! HP EliteBook 840 G5 - i5-8G I 8GB I 128GB SSD I 14" FHD I HDMI I Cam I W11 I Gari!
- Bomba ár! HP EliteBook 830 G7 - i5-10GEN I 16GB I 512GB SSD I HDMI I 13,3" FHD I Cam I W11 I Gari!
- Eladó ÚJ BONTATLAN Honor Magic6 Lite 8/256GB fekete / 12 hónap jótállással!
- Eredeti DELL 240W töltők (LA240PM160)
- Samsung Galaxy A12 64GB, Kártyafüggetlen, 1 Év Garanciával
- Bomba ár! Dell Latitude E6520 - i5-2GEN I 6GB I 320GB I HDMI I 15,6" HD+ I W10 I Gari!
- BESZÁMÍTÁS! ASRock Z370 i5 8500 16GB DDR4 512GB SSD 2060 Super 8GB Zalman Z9 Plus Enermax 750W
Állásajánlatok
Cég: Promenade Publishing House Kft.
Város: Budapest
Cég: PC Trade Systems Kft.
Város: Szeged