1.

What Is Abstract Class In Java?

Answer»

When we declared any CLASS with "ABSTRACT" KEYWORD is known as abstract class. In abstract class we can keep abstract method (without body) and non-abstract method (with body).

For example:

abstract class DEMO

{

abstract VOID show();//abstract method

void show(){}//non-abstract method

}

When we declared any class with "abstract" keyword is known as abstract class. In abstract class we can keep abstract method (without body) and non-abstract method (with body).

For example:

abstract class Demo

{

abstract void show();//abstract method

void show(){}//non-abstract method

}



Discussion

No Comment Found