//////
Search
✍️

[0926] 상속,다형성, 버블정렬 구현

생성일
태그
Assignment
생성일 1
1. velog의 Employee상속
문제 내용
2. velog의 버블정렬 구현 3. getArea() 오버라이딩 Shape[] shape = {new Triangle(10,10),new Rectangle(10,10)}; double sumArea = 0; for (Shape s : shape) { sumArea += s.getArea(); } System.out.println(sumArea);
상희 풀이