You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Cryptid/cryptide_project/src/source/Indices/SportIndice.ts

23 lines
433 B

import Sport from "../Sport";
import Indice from "./Indice";
class SportIndice extends Indice {
private sports: Sport[]
constructor(id: number, sports: Sport[]) {
super(id);
this.sports = sports
}
// Implémentation de la méthode abstraite
ToString(): string {
return "La personne a entre "
}
getSports(): Sport[]{
return this.sports
}
}
export default SportIndice