-
-
Save uncoded-ro/08e584a81ed674d5722de66e3db4f78c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ro.virtualcampus.ecom; | |
public class Produs { | |
private String descriere; | |
private double pret; | |
public Produs(String descriere, double pret) { | |
this.descriere = descriere; | |
this.pret = pret; | |
} | |
public String getDescriere() { | |
return descriere; | |
} | |
public void setDescriere(String descriere) { | |
this.descriere = descriere; | |
} | |
public double getPret() { | |
return pret; | |
} | |
public void setPret(double pret) { | |
this.pret = pret; | |
} | |
@Override | |
public String toString() { | |
return "Produs [descriere=" + descriere + ", pret=" + pret + "]"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment