What is an example of overloading?

Example 1: Overloading – Different Number of parameters in argument list . In the above example – method disp() is overloaded based on the number of parameters – We have two methods with the name disp but the parameters they have are different. Both are having different number of parameters.

Sizin İçin Seçtik  What is a constructor How many types of constructors are there?

Leave a Reply

Your email address will not be published. Required fields are marked *