1.

Can We Declare Abstract Method In Non-abstract Class?

Answer»

No, we can't declare abstract method in non-abstract class.

For example:

class DEMO

{

abstract void show();

}

Above example will THROW COMPILE time ERROR.

No, we can't declare abstract method in non-abstract class.

For example:

class Demo

{

abstract void show();

}

Above example will throw compile time error.



Discussion

No Comment Found