Log in

View Full Version : Why overloading concept is not supported in php?



ajay49560
08-25-2015, 07:34 AM
Hello Friends,

beastlinks777
09-01-2015, 03:30 AM
Function overloading isn't really a feature of OO programming. Sub-class function over-riding for the purpose of polymorphism is usually considered a necessary feature of OO - but not function overloading based on arguments. Python doesn't have argument-based function overloading either. Anyway, function overloading is probably more practical in statically-typed languages where function binding happens at compile time and is based on the type of each function parameter.