Skip to content

Prototype II - Mariana Seidel#10

Open
marianaseidel wants to merge 3 commits into
reprograma:masterfrom
marianaseidel:master
Open

Prototype II - Mariana Seidel#10
marianaseidel wants to merge 3 commits into
reprograma:masterfrom
marianaseidel:master

Conversation

@marianaseidel

Copy link
Copy Markdown

Resolução dos exercícios com uso de classes, herança, sobrescritas e campos privados.

@brena-odwyer brena-odwyer left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arrasou demais!

}


function chamar(listaAnimais) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mari, essa função poderia ter sido static dentro da classe Animal

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mas tá funcionando muito massa a função, arrasou! Só não aparece nada no console porque você não colocou um console.log no return, mas não precisava

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdadee, eu não tinha pensado nessa possibilidade de colocar como static! Obrigada pela dica <3

nina.miar()
nina.alimentar('peixe')
nina.miar()
nina.consultar('15/08/2023')

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a função consultar e a array consultas não estão aparecendo no console, mas acredito que esteja funcionando normalmente

let lilo = new Cachorro ('Lilo', 1, 'preto', true, false, 'bacê')
lilo.brincar()
lilo.castrar()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a única coisa que eu faria seria colocar um console.log("---------------") entre os bichos pra facilitar a visualização do console, mas tirando isso, adorei seu código, está muito bom, bem escrito e de fácil entendimento e com tudo funcionando! arrasou muito, parabéns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants