7
Presentation of Overloading, Overriding & Abstract Class

Overloading in java

  • Upload
    774474

  • View
    25

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Overloading in java

Presentation of Overloading,

Overriding & Abstract Class

Page 2: Overloading in java

What Is Constructor?

Having Same name as class name.

2 types of Constructor:

* Default

* Parameterized

Page 3: Overloading in java

Constructor Overloading?

Constructors having same name but

with different parameterized.

Page 4: Overloading in java

What is function overloading?

Two or more function having same

name but with different parameters.

Page 5: Overloading in java

What is Function Overriding?

Functions having same name but in

different classes.

There are 2 methods to prevent

overriding:

* Using Super keyword

* with the use of Final keyword

Page 6: Overloading in java

What is Abstract Class?

Undefined functions should start with

Abstract Keyword.

We can’t create the object to call the

function of that class.

Page 7: Overloading in java

Thank YOu