Top "Abstract-class" questions

Abstract classes are classes which cannot be instantiated.

Class 'Room' is abstract; cannot be instantiated

I have a class an abstract class Room which has subclasses Family and Standard, I have created room = new ArrayList&…

java abstract-class instantiation
Can't instantiate abstract class ... with abstract methods

I'm working on a kind of lib, and for a weird reason i have this error. Here is my code. …

python abstract-class abc six
Testing Abstract Classes

How do I test the concrete methods of an abstract class with PHPUnit? I'd expect that I'd have to create …

unit-testing phpunit abstract-class
Abstract functions in Swift Language

I'd like to create an abstract function in swift language. Is it possible? class BaseClass { func abstractFunction() { // How do I …

inheritance abstract-class swift
Why can't we declare a std::vector<AbstractClass>?

Having spent quite some time developping in C#, I noticed that if you declare an abstract class for the purpose …

c++ stl abstract-class
why do we need abstract classes in Java?

Why do we need abstract classes in Java? If you're never going to make it into an object, why have …

java class abstract-class abstract abstract-methods
Java generic method inheritance and override rules

I have an abstract class that has a generic method and I want to override the generic method by substituting …

java inheritance overriding abstract-class generic-method
C++ abstract base class constructors/destructors - general correctness

I would like to have a C++ Interface that must be overridden (if this is possible) when inherited. So far, …

c++ inheritance abstract-class virtual-inheritance
Virtual/Abstract fields in C#

Is it possible to have a virtual/abstract field in a C# class? If so, how is it done?

c# .net oop abstract-class
Benefits of using an abstract classes vs. regular class

I have decided to start doing small coding projects on my own that focus on code quality instead of code …

oop class abstract-class abstract