Tag Archives: abstract

Class with abstract methods must be declared abstract

Unlike a concrete class, any class with abstract methods cannot be instantiated. A class with abstract methods must be declared as abstract itself. For example,

Posted in Uncategorized | Tagged , , | Leave a comment

Abstract and concrete methods (Java programming)

Methods in a class can be declared as being abstract or concrete. Abstract methods have no method body (no implementation details) whereas concrete methods have a method body. The following example shows an abstract class with one abstract and one … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

What is a concrete class? (Java programming)

What is a concrete class? — You might be asked this question in the Sun Certified Java Associate (SCJA) exam. A concrete class is one that can be used to instantiate objects. For example, An abstract class is not a … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment