Cooper
2010-03-04 13:42:43 UTC
Hello, problem is this: i have two classes for example tclass1, tclass2 so
defined:
tclass1 = class
public
function dosomething2: byte;
procedure dosomething1;
end;
where dosomething1 call dosomething2 in internal block, and:
tclass2 = class (tclass1)
public
function dosomething2: byte;
end;
now, i want that result returned from tclass1 and tclass2 change only
changing function dosomething2; tclass1 and tclass2 are same; but
difference is only from dosomething2.
I have tried but calling procedure dosomething1 from tclass2 it return every
value of dosomething1 of tclass1 and not from dosomething2 of from tclass2
with value from dosomething2 of tclass2.
As i can to solve it?
Forgive for my english or if not explained good, if not right, i try to
explain better.
Thanks very much.
defined:
tclass1 = class
public
function dosomething2: byte;
procedure dosomething1;
end;
where dosomething1 call dosomething2 in internal block, and:
tclass2 = class (tclass1)
public
function dosomething2: byte;
end;
now, i want that result returned from tclass1 and tclass2 change only
changing function dosomething2; tclass1 and tclass2 are same; but
difference is only from dosomething2.
I have tried but calling procedure dosomething1 from tclass2 it return every
value of dosomething1 of tclass1 and not from dosomething2 of from tclass2
with value from dosomething2 of tclass2.
As i can to solve it?
Forgive for my english or if not explained good, if not right, i try to
explain better.
Thanks very much.