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.
Tp_ReactNative/JokesApp/model/SampleJoke.ts

18 lines
361 B

import { Joke } from "./Joke";
// Class SampleJoke héritant de Joke
export class SampleJoke extends Joke{
private _id : number
constructor(type : string, setup : string,punchline : string,image : string ,id : number) {
super(type,setup,punchline,image);
this._id = id
}
get id(): number {
return this._id;
}
}