Загрузка...

?Polymorphism in java || Compile Time Polymorphism in java || Method Overloading in java

Polymorphism in java || Compile Time Polymorphism in java || Method Overloading in java Polymorphism is one of the OOPs features that allow us to perform a single action in different ways. Topics Covered: ============ 0:00 Introduction 2:45 Method Overloading Definition 3:05 Practical Implementation 3:45 Method Explanation 7:25 Compile Time Polymorphism 11:00 Number of parameters. 11:30 Data type of parameters. 12:45 Sequence of Data type of parameters. 14:30 Type Promotion 23:00 Can we Overload the main method 24:30 Can we Overload the static methods 26:00 Method return type doesn’t matter in case of overloading. 29:30 Real-Time usage. The process of representing one form in multiple forms is known as Polymorphism. Polymorphism is derived from 2 greek words: poly and morphs. The word "poly" means many and "morphs" means forms. So polymorphism means many forms. Real-World Examples: Human Behaviour, Water, Animal Sounds... Using polymorphism, we can achieve flexibility and readability in our code because we can perform various operations by using methods with the same names according to requirements. Polymorphism can be either static or dynamic depending on how the method is called in a class. Types: compile-time polymorphism and runtime polymorphism. polymorphism. There are two types of polymorphism in java: 1) Static Polymorphism also is known as compile-time polymorphism 2) Dynamic Polymorphism also is known as runtime polymorphism We can perform polymorphism in java by method overloading(Compile-time/Static Polymorphism) and method overriding(Runtime polymorphism or Dynamic Method Dispatch) overloading : If a class has multiple methods having the same name but different in parameters, it is known as Method Overloading. Compile-time Polymorphism (or Static polymorphism) A polymorphism that is resolved during compiler time is known as static polymorphism. Method overloading is an example of compile-time polymorphism. Tags: The java programming language in Telugu, java programs in Telugu Explanation, Free java Telugu course, Java in Telugu, java in Telugu pdf, java in the Telugu language, java tutorial in Telugu, learn java in Telugu, java in Telugu for beginners, Association(HAS-A) in Java, What is Aggregation in java, What is Composition in java, oops, oops example, encapsulation, java fundamentals, JDK, object-oriented, oop concepts, abstraction, inheritance, polymorphism, class, object, method overloading, method overriding Subscribe Our Channel to get the latest videos. https://www.youtube.com/channel/UC9LBjpb30ecF1-tJag8EPqw

Видео ?Polymorphism in java || Compile Time Polymorphism in java || Method Overloading in java автора Java разработка систем управления инцидентами
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки