Java Method Overloading

 

Method Overloading

එකම Class එකක් තුළ එකම නමින් Method කිහිපයක් තබා ගැනීමට අප Method Overloading භාවිතා කරයි. Method එකේ  Parameter එකේ Argument වෙනස් කිරීමෙන් එකම නමින් Method කිහිපයක් තබා ගැනීම Method Overloading වේ.

Ex:-



Comments

Popular posts from this blog

What are the 'Java Standards' ???? 🤔

What are the 'Java Data Types' and 'Access Modifiers' ???? 🤔

Inheritance in java

Java Main Method and Construtor

Encapsulation

Abstraction in Java

Polymorphism