Up casting - c#

前端 未结 6 1049
星月不相逢
星月不相逢 2021-01-17 15:57
public class a{
  public string x1 {get;set;}
  public string x2 {get;set;}
  public string x3 {get;set;}
}

public class b:a{
}

Obviously v

6条回答
  •  难免孤独
    2021-01-17 16:40

    Not possible. Even if you think you have it, the compiler will complain.

    This usually indicates a design or logical error.

提交回复
热议问题