Skip to content

cgcola/repo_factory

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Problem

Implement factory design pattern using Pet as the factory interface. The interface implements two methods: makeSound() and play().

Dog and Cat are concrete objects that implements Pet interface.

PetRecord holds attributes such as petId, petName, and Pet.

Clinic would be the client object.

Refer to the UML Class Diagram

Class Diagram

image

About

First Lab Exercise in Design Pattern

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%