Home > DeveloperSection > Interviews > How to define an Abstract class?

Posted on    May-07-2011 12:44 AM

 Java Java 
 1 Answer(s)
  1002  View(s)
Rate this:

Amit Singh

Total Post:565

Posted on    May-07-2011 12:00 AM

A class containing abstract method is called Abstract class. An Abstract class can't be instantiated.
Example of Abstract class:
abstract class testAbstractClass {
protected String myString;
public String getMyString() {
return myString;
public abstract string anyAbstractFunction();

Don't want to miss updates? Please click the below button!

Follow MindStick