tailieunhanh - Object Oriented Programming - Lesson 7: Overriding, Abstract class and Interface
Object Oriented Programming - Lesson 7: Overriding, Abstract class and Interface Understand and master some Java techniques for realizing the inheritance. It presents Method overriding, Single inheritance and multiple inheritance, Abstract class and abstract method, Interface and implementation. | LESSON VII. Overriding, Abstract class and Interface Trinh Thanh TRUNG (MSc) trungtt@ Objectives • Understand and master some Java techniques for realizing the inheritance Content • • • • Method overriding Single inheritance and multiple inheritance Abstract class and abstract method Interface and implementation I. METHOD OVERRIDING 1. Concept 2. Final modifier and overriding 3. Object class 1. Concept • The sub class redefine a method that is inherited from a super class • The redefined method must have the same signature as the parent's method, but can have a different body • The type of the object executing the method determines which version of the method is .
đang nạp các trang xem trước