How you define Abstract class

How you define Abstract class

Answer: By using key word abstract class can be define as abstract class. Please see example below:

package com.builder.interfaceTest;

public abstract class AbstractClassTest {

    abstract void test();

    public static void main(String args[]) {
	System.out.println("Test");
    }

}

 

Output:

How you define Abstract class

Leave a Reply

Your email address will not be published. Required fields are marked *