Top "Abstract" questions

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

PHP Interface: Specify ANY visibility

I'm making use of an interface for a set of classes. I have a problem however because I wish for …

php oop interface abstract
c# Abstract Class implementing an Interface

I've seen the following code layout reading forums and other blog posts and adapted in order to ask a few …

c# interface abstract
Should I add an @Override annotation when implementing abstract methods in Java?

When overriding a non-virtual method in Java, use of the @Override annotation is recommended, but what if I implement an …

java annotations overriding abstract
Why can't an abstract class extend an interface?

I was just wondering why an abstract class can't extend an interface. Since we can't instantiate an abstract class, can't …

java interface abstract extends
protected data in abstract class

My question involves specifically Java, abstract classes, and the use of protected data. I am being told that all the …

java abstract protected
c++ abstract base class private members

Just wanted some clarification. Should abstract base classes never have private members? For example class abc{ public: virtual void foo()=0; …

c++ class abstract base
C# abstract class static field inheritance

I feel like I skipped a C# class or two, but here's my dilemma: I have an abstract class from …

c# inheritance static field abstract
Access Level to certain class must be public error in PHP

I created this class <?php abstract class Validator{ public $_errors = array(); abstract public function isValid($input); public function _addErrors($…

php dry abstract public
Explicitly implementing an interface with an abstract method

Here is my interface: public interface MyInterface { bool Foo(); } Here is my abstract class: public abstract class MyAbstractClass : MyInterface { abstract …

c# interface abstract
Is it OK to call abstract method from constructor in Java?

Let's suppose I have an abstract Base class that implements Runnable interface. public abstract class Base implements Runnable { protected int …

java methods constructor virtual abstract