Java Course Day 4

269 views
239 views

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
269
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Java Course Day 4

  1. 1. Day 4<br />
  2. 2. Abstract Class<br />
  3. 3. animal<br />
  4. 4. mammal<br />
  5. 5. abstract methods<br />
  6. 6. Abstract Class Vs Interface<br />
  7. 7. AC - Stereotype<br />I - Behavior<br />
  8. 8. AC - single<br />I - multiple<br />
  9. 9. Polymorphism<br />
  10. 10. Employee<br />abstract calculateSalary()<br />Stylist<br />Administrator<br />calculateSalary()<br />calculateSalary()<br />ArtMaster<br />calculateSalary()<br />
  11. 11. for (Employee e : employees) {<br />System.out.println(e.getName() + “salary: “ + e.calculateSalary());<br />}<br />
  12. 12. One more thing about inheritance<br />
  13. 13. IS - A<br />
  14. 14. HAS - A<br />
  15. 15. Black Coffee<br />Black Coffee with sugar<br />Espresso<br />Cappuccino<br />Mochaccino<br />
  16. 16. Encapsulation<br />Inheritance<br />Polymorphism<br />

×