다형성 응용
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 package org.opentutorials.javatutorials.polymorphism; abstract class Calculator{ int left, right; public void setOprands(int left, int right){ this.left = left; this.right = right; } int _sum() { return this.left + this.right; } public abstract void sum(); public abstract..
카테고리 없음
2019. 9. 15. 17:35