Top "Abstract" questions

abstract is a keyword shared by a multitude of object-oriented programming languages.

Java how to optional override method in abstract class?

Let's say we have a base class: public abstract class BaseFragment extends Fragment { ... protected abstract boolean postExec(); ... } And then derive …

java class methods abstract
Java final abstract class

I have a quite simple question: I want to have a Java Class, which provides one public static method, which …

java class abstract final
C#, implement 'static abstract' like methods

I recently ran into a problem where it seems I need a 'static abstract' method. I know why it is …

c# static abstract
C++'s pure virtual function implementation and header files

I'm having some trouble implementing pure virtual functions inherited from some abstract class, when the classes in question are divided …

c++ inheritance abstract pure-virtual
How to get the name of the calling class (in PHP)

define('anActionType', 1); $actionTypes = array(anActionType => 'anActionType'); class core { public $callbacks = array(); public $plugins = array(); public function __construct() { $this->…

php class abstraction abstract
Best way to declare an interface in C++11

As we all know, some languages have the notion of interfaces. This is Java: public interface Testable { void test(); } How …

c++ interface c++11 polymorphism abstract
Abstract constants in PHP - Force a child class to define a constant

I noticed that you can't have abstract constants in PHP. Is there a way I can force a child class …

php constants abstract
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
Best method of including an abstract in a latex 'book'?

I've been looking for the answer to this question for a while now but can't seem to find it, so …

latex abstract tex typesetting
Java: static abstract (again) - best practice how to work around

I theoretically understand the point why there is no abstract static in Java, as explained for instance in Why can't …

java static abstract