Can we have two methods in a class with the same name?

By drakula david in 22 Sep 2023 | 11:30 am
drakula david

drakula david

Student
Posts: 128
Member since: 22 Sep 2023

Can we have two methods in a class with the same name?

22 Sep 2023 | 11:30 am
0 Likes
divas goyal

divas goyal

Student
Posts: 453
Member since: 22 Sep 2023

 - In Java, you can have two methods in a class with the same name if they have different parameter lists (method overloading).


23 Sep 2023 | 04:24 pm
0 Likes

Report

Please describe about the report short and clearly.