IT Community - Software Programming, Web Development and Technical Support

Is it possible to override a method in Partial class ?

This is a discussion on Is it possible to override a method in Partial class ? within the ASP and ASP.NET Programming forums, part of the Web Development category; Hi, I want to create two methods with same name and parameters in a partial class. Can anyone tell me ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 02-05-2008, 10:42 PM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Thumbs up Is it possible to override a method in Partial class ?

Hi,

I want to create two methods with same name and parameters in a partial class. Can anyone tell me is it possible to override a method in partial class without using inheritance.

Thanks
__________________
The OXYGEN
Delivers edgy, intelligent Technology to all...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-08-2008, 02:08 AM
it.wily it.wily is offline
D-Web Programmer
 
Join Date: Jul 2007
Posts: 89
it.wily is on a distinguished road
Post Re: Is it possible to override a method in Partial class ?

hi..oxy..

For override a method in partial class is not possible as of my knowledge..

only it is possible while using inheritance....

it is possible to overide a method, when we use more than one class.

we can't do that in partial class. becz, partial class also a single class.


partial class:
partial classes mean that your class definition can be split into multiple physical files, all the physical files consider as signle class.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-08-2008, 02:47 AM
$enthil $enthil is offline
D-Web Sr.Programmer
 
Join Date: Apr 2007
Posts: 162
$enthil is on a distinguished road
Smile Re: Is it possible to override a method in Partial class ?

Great explanation wily...

Hi oxygen,

May i know why you need to override a method in a partial class?
__________________
$enthil

Last edited by $enthil : 02-08-2008 at 02:49 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
shadow and override sivakumar C# Programming 2 08-17-2007 05:58 AM
Difference between New and Override keywords raja C# Programming 2 08-17-2007 04:52 AM
Shadow and override vigneshgets C# Programming 2 08-16-2007 10:36 PM
Is there any way to use keyPressed method of Canvas class in Form class? bluesky Mobile Software Development 1 07-25-2007 06:02 AM
What is super class sub class in error? santoshmalvi Software Testing 1 04-16-2007 01:20 AM


All times are GMT -7. The time now is 06:02 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0