티스토리 뷰
1. String형 변수 name을 매개 변수로 받는 생성자 Student를 작성하세요.
class Student {
String name
void study() {
System.out.println(name + " Studying");
}
Student(String name) {
this.name = name;
}
}
public class Main {
public static void main(String args[]) {
Student student = new Student("Elice");
student.study();
}
}
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 스마트워치
- 프로그래머스
- 경제
- 코드
- 코테
- 영어
- 금리
- 개발
- 자바
- sql
- 모듈
- python
- 데이터
- mysql
- 머신러닝
- 프로그래밍
- 영어회화
- plot
- 파이썬
- R
- SW
- 함수
- Programming
- 데이터분석
- 클래스
- 코딩테스트
- 코딩
- 경제신문
- 보안
- 그래프
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
글 보관함