Last post Jul 10, 2015 09:08 AM by JohnBert
Jul 09, 2015 01:04 PM|NiranjanyadavB|LINK
what is Constructor Overloading and overriding?
Jul 09, 2015 01:38 PM|PatriceSc|LINK
http://www.advancesharp.com/blog/1056/overloading-and-overriding-in-c-with-example and http://www.codeproject.com/Articles/7011/An-Intro-to-Constructors-in-C (you can't
override a constructor)
Please do ask a precise question or just use a search engine if you want general stuff that is covered ton of times on the web...
Jul 10, 2015 02:05 AM|creiglee|LINK
Difference between method overloading and method overriding
Method overloading happens in the same class shares the same method name but each method should have different number of parameters or parameters having different types and order. But in method overriding derived class have the same method with same name
and exactly the same number and type of parameters and same return type as a parent class.
Method Overloading happens at compile time while Overriding happens at runtime. In method overloading, method call to its definition has happens at compile time while in method overriding, method call to its definition happens at runtime.
Method overloading add or extend more to the method functionality while method overloading is to change the existing functionality of the method
Static methods can be overloaded, that means a class can have more than one static method of same name. But static methods cannot be overridden, even if you declare a same static method in derived class it has nothing to do with the same
method of base class.
More about........Method Overloading and Method Overriding
Jul 10, 2015 09:08 AM|JohnBert|LINK