Click here to Skip to main content
15,885,309 members
Home / Discussions / C#
   

C#

 
AnswerRe: PLD's quastion (storage binding) Pin
Pete O'Hanlon13-Dec-11 21:51
mvePete O'Hanlon13-Dec-11 21:51 
AnswerRe: PLD's quastion (storage binding) Pin
jan lucas13-Dec-11 23:05
jan lucas13-Dec-11 23:05 
AnswerRe: PLD's quastion (storage binding) Pin
Deborah Palmer McCain14-Dec-11 10:35
Deborah Palmer McCain14-Dec-11 10:35 
QuestionVS 2010 No method to override error Pin
Deborah Palmer McCain13-Dec-11 14:23
Deborah Palmer McCain13-Dec-11 14:23 
AnswerRe: VS 2010 No method to override error Pin
PIEBALDconsult13-Dec-11 15:27
mvePIEBALDconsult13-Dec-11 15:27 
GeneralRe: VS 2010 No method to override error Pin
Deborah Palmer McCain13-Dec-11 16:27
Deborah Palmer McCain13-Dec-11 16:27 
GeneralRe: VS 2010 No method to override error Pin
PIEBALDconsult14-Dec-11 1:58
mvePIEBALDconsult14-Dec-11 1:58 
AnswerRe: VS 2010 No method to override error Pin
BillWoodruff13-Dec-11 15:43
professionalBillWoodruff13-Dec-11 15:43 
On this question: I think it would be helpful if you state your usage scenario here: what exactly are you trying to implement: how are the classes that implement these abstract classes going to use them ?

An abstract class that does not inherit from some other class is not going to have anything inside it that you can override.

If you changed your 'MyClass2' definition to this:
C#
abstract public class MyClass2: MyClass1
{
    public override int f()
    {
        return 0;
    }

    public static void Main()
    {
    }
}
Now it will compile. But please note, that I am not sure this something you should do.

By the way, I find it very weird to see a 'Main entry point for execution inside an abstract class. I'm curious what your intent is in putting it there.

Override in "Abstract, Son of Abstract" ? I hope others on this forum, much more knowledgeable than I am regarding use of inheritance involving abstract classes, will comment on what it might mean for one abstract class to inherit from another abstract class: is this good (or common) practice ? The purpose of that is obscure ... to me.
"For no man lives in the external truth among salts and acids, but in the warm, phantasmagoric chamber of his brain, with the painted windows and the storied wall." Robert Louis Stevenson

GeneralRe: VS 2010 No method to override error Pin
Deborah Palmer McCain13-Dec-11 16:23
Deborah Palmer McCain13-Dec-11 16:23 
AnswerRe: VS 2010 No method to override error Pin
Luc Pattyn13-Dec-11 19:08
sitebuilderLuc Pattyn13-Dec-11 19:08 
GeneralRe: VS 2010 No method to override error Pin
PIEBALDconsult14-Dec-11 1:57
mvePIEBALDconsult14-Dec-11 1:57 
GeneralRe: VS 2010 No method to override error Pin
Deborah Palmer McCain14-Dec-11 10:10
Deborah Palmer McCain14-Dec-11 10:10 
AnswerRe: VS 2010 No method to override error [Long Post] Pin
Keith Barrow13-Dec-11 22:09
professionalKeith Barrow13-Dec-11 22:09 
GeneralRe: VS 2010 No method to override error [Long Post] Pin
Deborah Palmer McCain14-Dec-11 10:03
Deborah Palmer McCain14-Dec-11 10:03 
AnswerRe: VS 2010 No method to override error Pin
Richard MacCutchan13-Dec-11 22:23
mveRichard MacCutchan13-Dec-11 22:23 
GeneralRe: VS 2010 No method to override error Pin
prasun.r14-Dec-11 1:23
prasun.r14-Dec-11 1:23 
GeneralRe: VS 2010 No method to override error Pin
Deborah Palmer McCain14-Dec-11 10:04
Deborah Palmer McCain14-Dec-11 10:04 
GeneralRe: VS 2010 No method to override error Pin
Richard MacCutchan14-Dec-11 11:43
mveRichard MacCutchan14-Dec-11 11:43 
Questionchat software Pin
om_metab13-Dec-11 9:09
om_metab13-Dec-11 9:09 
AnswerRe: chat software Pin
Dalek Dave13-Dec-11 12:43
professionalDalek Dave13-Dec-11 12:43 
AnswerRe: chat software Pin
Keith Barrow13-Dec-11 22:33
professionalKeith Barrow13-Dec-11 22:33 
GeneralRe: chat software Pin
om_metab13-Dec-11 23:51
om_metab13-Dec-11 23:51 
AnswerRe: chat software Pin
BobJanova13-Dec-11 22:47
BobJanova13-Dec-11 22:47 
GeneralRe: chat software Pin
om_metab13-Dec-11 23:39
om_metab13-Dec-11 23:39 
GeneralRe: chat software Pin
BobJanova14-Dec-11 1:05
BobJanova14-Dec-11 1:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.