Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * É um elfo noturno mas não ganha mais 3x de EXP e não perde 5% de vida ao atirar uma flecha;
- */
- public static void main(String[] args){
- ElfoNoturno elfoDaNight = new ElfoNoturno();
- Elfo elfo = elfoDaNight; // motherfucking upcast
- }
- // DownCast
- Elfo elfo = new elfoNoturno();
- ElfoNoturno noturno = (ElfoNoturno)elfo;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement