Rajesh Singh
This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }
By Rajesh Singh in C# on Nov 16 2015
  • Renuga Palanichamy
    Jan, 2017 24

    abstract methods cannot declare a body, abstract method cannot have virtual, the return type is missing in C method.

    • 0
  • Bhuvan Pandey
    Aug, 2016 5

    Abstract class can create abstract and non abstract method but we can not create virtual method in abstract class. So declare class is not correct.

    • 0
  • Mangesh Kulkarni
    Jul, 2016 31

    Abstract Method does not have body

    • 0
  • Rajesh Singh
    Nov, 2015 16

    Ans: Method without implementation is called abstract method. It is declared with abstract key word. Please see inline comment.abstract class A {public abstract void Disp();//correctpublic abstract void B() //wrong {}public absract virtual C() //wrong {}}

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS