일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 파이선
- 코딩도장
- 파이썬
- python
- codecademy
- 알고리즘
- bool
- C++
- 영알남
- Polymorphism
- cout
- cow
- Notting hill
- Project
- html5
- endl
- std
- UE4
- CSS
- Unreal
- for
- unreal engine4
- dictation
- html
- Euler
- if
- Bull
- font weight
- 연결리스트
- Java
Archives
- Today
- Total
목록다형성 (1)
다형성 예제 2 (객체 배열 추가)
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..
Programming/Java
2018. 1. 19. 11:03