Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Java Course Day 4

330 views

Published on

Published in: Education
  • Be the first to comment

  • Be the first to like this

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 />

×