oop-expert-with-typescript
oop-expert-with-typescript copied to clipboard
Abstract Factory
hello you have a bug in example Abstract Factory. change getVideo to createVideo. and change getBook to createAudioBook
interface PackageOfferor {
createVideo: () => Movie;
createAudioBook: () => AudioBook;
}
class AdultsPackageOfferor implements PackageOfferor {
getVideo() {
return new AdultsMovie(/* Arguments */);
}
getBook() {
return new AdultsAudioBook(/* Arguments */);
}
}
Hi dear Ali,
Thanks for you attention and your collaboration in my repo, it's my pleasure. I will fix it soon.