일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- for
- python
- Java
- Notting hill
- font weight
- 파이썬
- codecademy
- UE4
- 알고리즘
- html5
- 연결리스트
- if
- C++
- 영알남
- bool
- Unreal
- unreal engine4
- std
- Bull
- 파이선
- endl
- cout
- 코딩도장
- CSS
- dictation
- cow
- html
- Euler
- Polymorphism
- Project
- Today
- Total
목록Java (3)
package javafuture; import javafx.scene.Parent; public class Example { public static void main(String[] args) { Buyer b = new Buyer(); b.buy(new TV()); b.buy(new Computer()); b.buy(new Audio()); System.out.println(b.bonusPoint); System.out.println(b.money); b.summary(); } } class Product { int price; int bonusPoint; Product(int price) { this.price = price; bonusPoint = (int) (price / 10); } Prod..
package javafuture; import javafx.scene.Parent; public class Example { public static void main(String[] args) { Buyer b=new Buyer(); b.buy(new Tv()); b.buy(new Computer()); System.out.println(b.money); System.out.println(b.bonusPoint); } } class Product{ int price; // product's price int bonusPoint; // membership point when you buy something Product(int price){ this.price=price; this.bonusPoint=..