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.
23 lines
433 B
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 |