Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package com.sistemaescola;
- /**
- *
- * @author fabio
- */
- public class Aluno {
- private String nome;
- /**
- * Get the value of nome
- *
- * @return the value of nome
- */
- public String getNome() {
- return nome;
- }
- /**
- * Set the value of nome
- *
- * @param nome new value of nome
- */
- public void setNome(String nome) {
- this.nome = nome;
- }
- private int id;
- /**
- * Get the value of id
- *
- * @return the value of id
- */
- public int getId() {
- return id;
- }
- /**
- * Set the value of id
- *
- * @param id new value of id
- */
- public void setId(int id) {
- this.id = id;
- }
- private String mae;
- /**
- * Get the value of mae
- *
- * @return the value of mae
- */
- public String getMae() {
- return mae;
- }
- /**
- * Set the value of mae
- *
- * @param mae new value of mae
- */
- public void setMae(String mae) {
- this.mae = mae;
- }
- public void salvar(){
- System.out.println("id...: "+id);
- System.out.println("nome.: "+nome);
- System.out.println("mae..: "+mae);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement