Trouble with inheritance

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-04-18T17:26:03Z Indexed on 2010/04/18 17:33 UTC
Read the original article Hit count: 489

Filed under:
|
|

I'm relatively new to programming so excuse me if I get some terms wrong (I've learned the concepts, I just haven't actually used most of them).

Trouble: I currently have a class I'll call Bob its parent class is Cody, Cody has method call Foo(). I want Bob to have the Foo() method as well, except with a few extra lines of code. I've attempted to do Foo() : base(), however that doesn't seem to work like. Is there some simple solution to this?

© Stack Overflow or respective owner

Related posts about c#

Related posts about oop