Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

RECORD VS CLASS

Name: ­ 2009-03-14 9:45

entry-level here, forced to work in Delphi 5 (i know)

so i have got a working program that uses records that use pointers to point to the next record each
and i've got a program that uses classes

would it be SENSEFULL trying to replace the records from the first program with a class that does the exact same thing, which is storing a single dataset (e.g. a name) and pointing to the next instance of the class to create a linear database?

Name: Anonymous 2009-03-14 9:56

So you're making a linked list?
I don't think there would be any real difference in using a class as opposed to records(except for methods being inside/outside of the class/record). You could if you wanted to, but if you already have a working program, I'd leave it.


You are of course allowed to ignore my advice, since I study EE

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List