I am teaching myself Delphi and I am having a problem with OOP. I am trying to create a new class, but keep getting an error message, even though I am following the example int he book.
this is the code which is in a new unit:
--------------------------------------------
unit Unit2;
interface
type
Temployee = class
Name: char;
salaryToDate: integer;
procedure upDate(salUpdate: integer);
end;
implementation
end.
-----------------------------------------------
the error I get is:
-----------------------------------------------
[Error] Unit2.pas(9): Unsatisfied forward or external declaration: 'Temployee.upDate'
[Fatal Error] Project1.dpr(6): Could not compile used unit 'Unit2.pas'
-----------------------------------------------
Can you help
this is the code which is in a new unit:
--------------------------------------------
unit Unit2;
interface
type
Temployee = class
Name: char;
salaryToDate: integer;
procedure upDate(salUpdate: integer);
end;
implementation
end.
-----------------------------------------------
the error I get is:
-----------------------------------------------
[Error] Unit2.pas(9): Unsatisfied forward or external declaration: 'Temployee.upDate'
[Fatal Error] Project1.dpr(6): Could not compile used unit 'Unit2.pas'
-----------------------------------------------
Can you help