You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
390 B
22 lines
390 B
3 years ago
|
package patronVisitor;
|
||
|
|
||
|
//Visitante Concreto
|
||
|
public class VisitanteSubir implements Visitante {
|
||
|
|
||
|
@Override
|
||
|
public void visitar(NodoA n) {
|
||
|
System.out.println("Subir: " + n.operacionA());
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void visitar(NodoB n) {
|
||
|
System.out.println("Subir: " + n.operacionB());
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void visitar(NodoC n) {
|
||
|
System.out.println("Subir: " + n.operacionC());
|
||
|
}
|
||
|
|
||
|
}
|