Overloading & Overriding In C#

This Tutorial Has Been Viewed 945 Times.

Overloading

Means you have more then one funcitons with same name but with different signtures in the same class.

string Add(string a, string b);
int Add(int a, int b);

Overriding

overriding.
The base class method is override by the derived class.

class a
{
private int balu()
{
console.writeline(“nicei”);
}
}

class b inherits a
{
private int balu()
{
console writeline(“i like it”);
}
}

the output is :
i like it

VN:F [1.9.13_1145]
Rating: 1.0/10 (1 vote cast)
VN:F [1.9.13_1145]
Rating: 0 (from 0 votes)

Overloading & Overriding In C#, 1.0 out of 10 based on 1 rating

Incoming search terms:

Tags:

Leave a Reply

Spam protection by WP Captcha-Free

Proudly designed by Mistonline.in.
Affordable Seo PackagesSeo BlogEdu Backlinks