You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classe Animal {
correr() {
escreva("Correndo Loucamente");
}
}
classe Cachorro herda Animal {
latir() {
escreva("Au Au Au Au"); aqui é pra gerar um erro
}
}
var nomeDoCachorro = Cachorro();
nomeDoCachorro.correr();
nomeDoCachorro.latir();
Deveria retornar erro, mas não retorna e funciona normal.
The text was updated successfully, but these errors were encountered:
Testando:
Deveria retornar erro, mas não retorna e funciona normal.
The text was updated successfully, but these errors were encountered: