Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | None | 0 0
  1. public class PrincesaModerna extends Princesa{
  2.     private String numeroWhats;
  3.  
  4.     public PrincesaModerna(String numeroWhats, String nome, String fadaMadrinha, String corCabelo, int anoNascimento, String encontrouPrincipe) {
  5.         super(nome, fadaMadrinha, corCabelo, anoNascimento, encontrouPrincipe);
  6.         this.numeroWhats = numeroWhats;
  7.     }
  8.  
  9.    
  10.  
  11.     public String getNumeroWhats() {
  12.         return numeroWhats;
  13.     }
  14.  
  15.     public void setNumeroWhats(String numeroWhats) {
  16.         this.numeroWhats = numeroWhats;
  17.     }
  18.  
  19.     @Override
  20.     public void chorar() {
  21.         System.out.println("Só choro quando meu Crush visualiza a mensagem e não responde!");
  22.     }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement