What is the difference between overloading and overriding?
What is the difference between overloading and overriding?
Here is the difference between method overloading and method overriding in C#:
Example:
public class Calculator
{
public int Add(int a, int b)
{
return a + b;
}
public int Add(int a, int b, int c)
{
return a + b + c;
}
}
middle
Gợi ý câu hỏi phỏng vấn
Chưa có bình luận nào