JAVA 프로그래밍 기초 - WRAPUP
- 2024-07-02 01:03:18
- 리뷰(0)
```java
public class ProductDetail {
private String productName;
private String description;
private double price;
public ProductDetail(String productName, String description, double price) {
this.productName = productName;
this.description = description;
this.price = price;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public double getPrice() {
return price;
}
public void setPrice(double price) {
this.price = price;
}
public void displayProductDetail() {
System.out.println(\