C언어 기반 JAVA 프로그래밍

C언어 기반 JAVA 프로그래밍

  • 2024-07-05 23:28:12
  • 리뷰(0)

가이드문구

예를 들어, C언어로 작성된 코드를 JAVA 프로그래밍 언어로 변환하면 다음과 같을 것입니다.

```java
public class Product {
private String name;
private int price;
private String description;

public Product(String name, int price, String description) {
this.name = name;
this.price = price;
this.description = description;
}

public String getName() {
return name;
}

public int getPrice() {
return price;
}

public String getDescription() {
return description;
}

public void setDescription(String description) {
this.description = description;
}

public static void main(String[] args) {
Product product = new Product(\