Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
classe ebook cap 5 do livro de oo
public class Ebook extends Livro {
private String waterMark;
public Ebook(Autor autor) {
public String getWaterMark() {
return waterMark;
public void setWaterMark(String waterMark) {
this.waterMark = waterMark;
public boolean aplicaDescontoDe(double porcentagem) {
if (porcentagem > 0.15) {
return false;
return super.aplicaDescontoDe(porcentagem);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment