Skip to content

AvisPhoenix/CoE_Challenge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 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 2 lts soda and 1 bag of chips, you get another bag of chips for free
  • promotionals cannot be combined with any other one.

restrictions:

  • no more than 5 lines per method

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

No packages published

Languages

  • C# 100.0%