package mall;
public class Goods {
private int gId; //상품 번호
private String gName; //상품 이름
private int gPrice; // 상품 가격
public Goods() {
}
public Goods(int gId, String gName, int gPrice) {
super();
this.gId = gId;
this.gName = gName;
this.gPrice = gPrice;
}
형들 내가 개바보라서 그런데 이거 해석해줘 super가 뭐고 Goods 과 왜 3개나 나와
super는 슈퍼모드라는 거임. 있잖아 게임에서 슈퍼모드로 플레이하는거. Goods = 좋다, 즉 많으면 많을수록 좋아서 3개나 있는거
생성자 오버로딩 . 슈퍼는 뭐 스태틱메서드거나 함수거나 뭔가하는거겠지뭐
물론 자바는안해봤지만