Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

WithoutBook Forum

Ques. How to define an Abstract class?

- How to define an Abstract class?

Posted on Sep 28, 2010 by Anand
Ans. 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();
}
Posted on Sep 28, 2010 by Arindam Ghosh

Ans. Kudos! What a neat way of tihkning about it.
Posted on Jun 14, 2011 by Cheyanna

Enter your Answer

Name
Email Address
Answer
©2024 WithoutBook