Hiển thị các bài đăng có nhãn overloading method. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn overloading method. Hiển thị tất cả bài đăng

Abstract class in Java



A class that is declared with abstract keyword, is known as abstract class in java. It can have abstract and non-abstract methods (method with body).
Before learning java abstract class, let's understand the abstraction in java first.


Inheritance in Java

  1. Inheritance
  2. Types of Inheritance
  3. Why multiple inheritance is not possible in java in case of class?

Inheritance in java is a mechanism in which one object acquires all the properties and behaviors of parent object.


Method Overloading in Java

Method Overloading in Java

  1. Different ways to overload the method
  2. By changing the no. of arguments
  3. By changing the datatype
  4. Why method overloading is not possible by changing the return type
  5. Can we overload the main method
  6. method overloading with Type Promotion