У нас вы можете посмотреть бесплатно #Java или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Method Overriding: Method overriding is an example of Polymorphism. Poly means many and morphic means many forms. One thing performs many actions. Method Overriding: Super class method and sub class methods having same names with same signature i.e, no. of the parameter of the method and data types of the parameters are same. When Method Overriding occurs, using sub class object we can only call sub class method. To call super class method we use the keyword super. Example Program: ------------------------------------ class Parent{ public void display(){ System.out.println("++parent display++"); } } class Child extends Parent{ public void display(){ super.display(); System.out.println("**child display**"); } } class Main{ public static void main(String args[]){ Child c = new Child(); c.display(); } } --------------------------------------------------- Abstract classes and interfaces are also the examples of Polymorphism. Abstract classes and interfaces are also examples of Data Abstraction. Since, methods code are hidden. Link for Abstract class: Link for Interfaces: For any queries please write in the comment box. Dr. Venkateshwarlu.