Top "Abstract-class" questions

Abstract classes are classes which cannot be instantiated.

How to create an instance of anonymous class of abstract class in Kotlin?

Assume that KeyAdapter is an abstract class with several methods that can be overridden. In java I can do: KeyListener …

java abstract-class kotlin
How can I implement an abstract singleton class in Java?

Here is my sample abstract singleton class: public abstract class A { protected static A instance; public static A getInstance() { return …

java inheritance singleton abstract-class classloader
When to use interfaces or abstract classes? When to use both?

While certain guidelines state that you should use an interface when you want to define a contract for a class …

oop interface abstract-class
Get Concrete Class name from Abstract Class

In Java, inside an abstract class can I get the instance of the concrete class that extends it?

java abstract-class
Java Logging With Abstract Classes

I am working on a project, and am currently working on implementing some logging with log4j and I was …

java inheritance logging abstract-class
Are abstract class constructors not implicitly called when a derived class is instantiated?

Take this example: abstract class Base { function __construct() { echo 'Base __construct<br/>'; } } class Child extends Base { function __…

php abstract-class
Equivalent of NotImplementedError for fields in Python

In Python 2.x when you want to mark a method as abstract, you can define it like so: class Base: …

python abstract-class
Naming conventions for abstract classes

I distinctly remember that, at one time, the guideline pushed by Microsoft was to add the "Base" suffix to an …

.net naming-conventions abstract-class
Best example of Abstract class in Android

I am trying to design one Abstract class and method in Android and call those methods by extending the class …

android abstract-class abstract-methods
Should an abstract class have at least one abstract method?

Is it necessary for an abstract class to have at least one abstract method?

java abstract-class abstract abstract-methods