일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- hyperledger transaction
- #android activity
- html plug-in
- #2차원배열
- html object
- #C++ 연산자함수오버로딩
- html multimedia
- border-box
- html id
- docker example
- html video
- git flow
- #성적관리프로그램
- #binary
- 하이퍼레저패브릭
- #JAVASCRIPT
- html code
- html5 new tag
- #bubbleSort
- #3차원배열
- html charset
- #자바상속#자바이즈어#is~a
- #C++ has~a
- relative path
- #다차원포인터
- html youtube
- #CallByAddress
- 토큰경제
- #1차원배열
- mac terminal command
Archives
- Today
- Total
목록#객체지향#Object-Oriented (1)
A sentimental robot
Object oriented style exercise
import java.util.Scanner;public class Hello2 { int num1, num2; char a; public void setNum1(int x) { num1 = x; } public void setOp(char r) { a = r; } public void setNum2(int y) { num2 = y; } public int getNum1() { return num1; } public char getOp() { return a; } public int getNum2() { return num2; } public int getRes() { int result=0; switch (a) { case '+': result = (num1 + num2); break; case '-'..
Java
2017. 12. 28. 14:07