Skip to content

unjoker/CoE_Challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CoE_Challenge

A kata to practice OOP principles

The following code belongs to an online shopping cart

Your job is to make the code able to handle the following business rules:

  • add a promotional 2X1 discount for every product but any snack
  • for each bundle of 1 shampoo and 1 soap you get another free soap
  • when you buy 2 bags of nachos or more you get 1 dip for free
  • for each bundle of 1 soda and 1 bag of chips, you get another bag of chips for free

restrictions:

  • no more than 5 lines per method
  • no getters/setters

Please apply the OOP tenets: Encapsulation, Polymorphism, Abstraction and Inheritance as you see fit to make this code object oriented

About

A kata to practice OOP principles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages