///
Analise o trecho de código a seguir em Java e assinale a alternativa correta:
public class Cachorro { public void tipo() { System.out.print("10"); } }
public class Basset extends Cachorro { public void tipo() { System.out.print("100"); } }
public class Teste
{
public static void main(String args[])
{
Cachorro cachorro1 = new Cachorro();
Cachorro cachorro2 = new Basset();
cachorro1.tipo();
cachorro2.tipo();
}
}