Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classe que calcula o preço do carrinho #4

Open
Marlysson opened this issue Jun 22, 2016 · 1 comment
Open

Classe que calcula o preço do carrinho #4

Marlysson opened this issue Jun 22, 2016 · 1 comment
Labels

Comments

@Marlysson
Copy link
Owner

Classe receberia um carrinho e retornaria o preço dele com base nos produtos e nas suas quantidades.

Podendo adicionar um método que retorna a quantidade de determinado Produto. Feriria o SRP (Single Responsability Principle) ???

@Marlysson
Copy link
Owner Author

Analisando......Pois poderia ser calculado o preço na classe de ItemCompra.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant