Home » Interview Questions » Core Java Interview Questions » How to define an Abstract class?
 

How to define an Abstract class?

A class containing abstract method is called Abstract class. An Abstract class can't be instantiated.

 

abstract class testAbstractClass { protected String myString; public String getMyString() {     return myString; }   public abstract string anyAbstractFunction(); }


Write a comment

  • Required fields are marked with *.

If you have trouble reading the code, click on the code itself to generate a new random code.
Security Code: