4
Reply

This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }

Rajesh Singh

Rajesh Singh

Nov 16, 2015
1.3k
0

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

    Renuga Palanichamy
    January 24, 2017
    0

    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.

    Bhuvan Pandey
    August 05, 2016
    0

    Abstract Method does not have body

    Mangesh Kulkarni
    July 31, 2016
    0

    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 {}}

    Rajesh Singh
    November 16, 2015
    0