| Forums.Sureshkumar.net : A Perfect Place to Share Knowledge Blogs Games Magazines |
|
|
#2 (permalink) |
|
Junior Member
Join Date: Jan 2008
Posts: 5
Thanks: 1 Thanked 0 Times in 0 Posts Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 1
|
overloading means methods having the same name but with different parameters
overriding means methods having the same method name with same method signature that means having the same parameters also. overloading means extension of the program. overriding means replacement of the program |
|
|
|
|
|
#4 (permalink) |
|
Junior Member
Join Date: Jul 2007
Posts: 22
Thanks: 0 Thanked 0 Times in 0 Posts Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2
|
Re: overloading,overriding
Let me add some thing .....
Overloaded methods Which overloaded version of the method to call is based on the reference type of the argument passed at compile time. Overriden methods Which overriden version of the method to call is decided at runtime based on object type. |
|
|
|
|
|
#5 (permalink) |
|
Junior Member
Join Date: Apr 2008
Age: 29
Posts: 2
Thanks: 0 Thanked 0 Times in 0 Posts Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1
|
Re: overloading,overriding
overloading is for same class while overriding is for child and parent class.
overloading will have same method name and different paramaeter but in overriding method name and parameter should be same. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|