Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- public class Elev {
- private String nume;
- private int varsta;
- public Elev(String nume, int varsta){
- this.nume = nume;
- this.varsta = varsta;
- }
- public Elev(){
- nume = "NumeGol";
- varsta = 0;
- }
- public String getNumeAndVarsta(){
- String x = nume + " " + varsta;
- return x;
- }
- public String getNume(){
- return this.nume;
- }
- public void setNume(String nume){
- this.nume = nume;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement