![]() |
| | #1 |
| Registered User Join Date: Feb 2008
Posts: 55
| Overriding a method in C Is there any way to override a method in c? I am using a blackbox framework when developing some code and need to alter the way a specific method works. I don’t have access to the method directly (as in source) and was wondering if there was a way I could re-define the method elsewhere in my program and use my own code inside? (In effect binning the old method so I can write a better one )Cheers David |
| DavidDobson is offline | |
| | #2 |
| Deathray Engineer Join Date: Mar 2007
Posts: 3,211
| C doesn't have "methods". It has functions. Once a function is written, it's written and that is that. There are non-portable ways of doing this kind of thing, however, they are advanced, and you don't strike me as a person that has a good reason to do this.
__________________ |
| MacGyver is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| on method pointers and inheritance | BrownB | C++ Programming | 2 | 03-02-2009 07:50 PM |
| stuck on display method | shintaro | C++ Programming | 2 | 02-01-2009 05:17 PM |
| Best communication method to thousand childs? | Ironic | C Programming | 8 | 11-08-2008 12:30 AM |
| C# method | siten0308 | C# Programming | 6 | 07-15-2008 07:01 AM |
| I need some help about delaying a method from returning the answer, Asynchronous.. | legolas.wood | C++ Programming | 2 | 01-22-2008 04:22 PM |