Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

Overriding and Return Types
As we know that When a subclass wants to change the method implementation of an inherited method,
the subclass must define a method that matches the inherited version exactly.an exact match means the arguments and return types must be identical.We know that overloaded methods can change the return type, but overriding methods cannot.
Posted By: Name:Rajesh Kr URL: Overriding and Return Types