Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > JAVA Technologies
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 26-12-07, 10:53 PM   #1 (permalink)
Junior Member
 
Join Date: Oct 2006
Age: 20
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3 swapna222 is on a distinguished road
overloading,overriding

what is overriding?what is difference b/w oveloading and overriding and whts there use in programs?
swapna222 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 17-01-08, 12:02 PM   #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 npdevi is on a distinguished road
Smile Re: overloading,overriding

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
npdevi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 17-01-08, 12:04 PM   #3 (permalink)
Senior Member
 
naveen_welcomes's Avatar
 
Join Date: Jul 2006
Posts: 341
Thanks: 4
Thanked 33 Times in 26 Posts
Thanks: 4
Thanked 33 Times in 26 Posts
Rep Power: 12 naveen_welcomes is just really nice naveen_welcomes is just really nice naveen_welcomes is just really nice naveen_welcomes is just really nice naveen_welcomes is just really nice naveen_welcomes is just really nice
Re: overloading,overriding

Thank you npdevi....
__________________
naveen_welcomes is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 21-02-08, 03:05 PM   #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 JavaLang is on a distinguished road
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.
JavaLang is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-04-08, 02:40 PM   #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 ksingh is on a distinguished road
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.
ksingh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +6.5. The time now is 02:39 AM.





Search Engine Optimization by vBSEO 3.1.0