У нас вы можете посмотреть бесплатно what is Polymorphism? Explaining it with real life example in Java или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
what is Polymorphism? Explaining it with real life example in Java Polymorphism: The word “poly” means many and “morphs” means forms, So it means many forms. In Java polymorphism is mainly divided into two types: 1. Compile-time Polymorphism 2. Runtime Polymorphism Code: 1.Compile- Time Polymorphism: public class SocialMediaApp { //Polymorphism - having more than one form // person - male [son, husband, employee, father, grand father] //compile-time : Method Overloading //whatsApp : individualchat, Status, group chat //Object is bound by functionality during compile-time //compiler knows which method to call with method signature //static binding or early binding public void whatsAppMethods(String individualChat) { System.out.println("You are chatting with a single person"); } public void whatsAppMethods(int status){ System.out.println("You are adding a status"); } public void whatsAppMethods(String individualChat,String groupChat){ System.out.println("You are chatting with an individual and in a group"); } public static void main(String[] args) { SocialMediaApp sma = new SocialMediaApp(); sma.whatsAppMethods(2); sma.whatsAppMethods("How are you today?"); sma.whatsAppMethods("How are you today?", "Welcome to Java Group"); } } 2. RunTime Polymorphism: class WhatsApp{ int status = 2; public void whatsAppMethods(String individualChat) { System.out.println("You are chatting with your parent"); } } public class SocialMediaApplication extends WhatsApp { int statusOfChild = 3; //runtime-polymorphism : object is bound during run time - Method Overriding //JVM - method to call - runtime //Dynamic Binding / Late Binding public void whatsAppMethods(String individualChat) { System.out.println("You are chatting with your friend"); } public static void main(String[] args) { WhatsApp w = new SocialMediaApplication(); w.whatsAppMethods(null); System.out.println(w.status); } } Chapters: 0:00 - Introduction to the video. 0:12 - Explanation of Polymorphism. 0:52 - Explaining Compile-Time Polymorphism with real life example. 7:26 - Explaining RunTime Polymorphism with real life example. Next Steps : --------------------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------------------- Must Watch Playlists ► 1. Javascript - • Javascript Factory ► 2. Puppetter - • Puppeteer ► 3. Cypress - • Cypress ► 4. Tech works - • Видео ► 6. Jmeter - • Jmeter Tutorials ► 7. Excel - • Videos On Excel ► 8. Appium - • Appium ► 9. Shares - • Shares ► 10. Javascript Interview Questions - • Javascript Interview Questions ► 11. C# Tutorials - • C# Factory ► 12. HTML & CSS - • HTML & CSS ► 13. Browser Console - • Browser Console ► 14. JSON - • Videos on Json ► 15. Specflow - • Specflow Tutorials ► 16. MongoDB - • MongoDB Tutorials ► 17. Postman - • Postman ► 18. Python - • Python ► 19. Typescript - • Typescript & Node Imp Questions ► 20. Node - • Node ► 21. Java Selenium Interview Questions: • Java and Selenium Imp ► 23.SOAP UI Tutorials : • SOAP UI ► 24. WebDriverIO : • Getting Started with WebdriverIO | Install... ► 25. Jenkins : • How to download and install Jenkins on Win... --------------------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------------------- #java #polymorphism #reallifeexperience