oop-expert-with-typescript icon indicating copy to clipboard operation
oop-expert-with-typescript copied to clipboard

Abstract Factory

Open Ali-omidian opened this issue 3 years ago • 1 comments

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 */);
  }
}

Ali-omidian avatar Jul 27 '22 04:07 Ali-omidian

Hi dear Ali,

Thanks for you attention and your collaboration in my repo, it's my pleasure. I will fix it soon.

jafari-dev avatar Jul 27 '22 18:07 jafari-dev