I received the following message:
Issue with 'Motorvoertuig' class implementing 'Voertuig' interface.
Error: Type 'Motorvoertuig' is missing properties from 'Voertuig': toonMerk, wieIsDeEigenaar
However, the reason behind this error is unclear to me.
Although there is more code in this document, the error appears to be related to the following methods.
interface Voertuig {
merk: string;
eigenaar: string;
toonMerk(merk:string);
wieIsDeEigenaar(eigenaar:string);
};
abstract class Motorvoertuig implements Voertuig {
(Some code)
}
How can I resolve this error?