Top "Abstract" questions

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

Override abstract readonly property to read/write property

I would like to only force the implementation of a C# getter on a given property from a base abstract …

c# properties abstract
I am unable to add an element to a list? UnsupportedOperationException

This one list object is biting me in the butt.. Any time I try to add an element to it, …

java list object add abstract
Overriding an abstract property with a derived return type in c#

I have four classes. Request, DerivedRequest, Handler, DerivedHandler. The Handler class has a property with the following declaration: public abstract …

c# inheritance overriding abstract derived
Private constructor in abstract class

In Java what is the purpose of using private constructor in an abstract class? In a review I got this …

java class constructor private abstract
Best practices to test protected methods with PHPUnit (on abstract classes)

With PHPUnit and PHP >= 5.3 it is possible to test protected methods. The following page at stackoverflow outlined the best …

php methods phpunit abstract protected
Use of an abstract class without any abstract methods

An abstract class need not include any abstract methods. Is there any other reason to make a class abstract other …

java abstract-class abstract
How to find where an abstract method is implemented in Eclipse?

I would like to find where an abstract method is implemented, in which class? Is there a link in Eclipse …

java eclipse hierarchy abstract
Constructor injection into a base class using autofac

I have an abstract base controller which has a constructor I hoped would be populated by autofac when the controllers …

constructor autofac code-injection abstract
Derive abstract class from non-abstract class

Is it OK to derive an abstract class from a non-abstract class or is there something wrong with this approach? …

c# .net inheritance abstract
Why can't you have a protected abstract class in Java?

I have an abstract class which looks like: abstract class AbstractFoo implements Bar { //Code goes here } However when I try …

java blackberry java-me abstract protected