Top "Abstract-class" questions

Abstract classes are classes which cannot be instantiated.

Why can abstract methods only be declared in abstract classes?

I understand that in abstract classes methods be both abstract, or not. But why can I not create an abstract …

java abstract-class abstract abstract-methods
Execute a derived constructor before the base constructor in C#

My problem here is that I would like to pass an object to a derived class, but it must be …

c# constructor abstract-class derived-class
What is the difference between a simple base class and abstract class?

I was doing a kind of R&D and am confused with the concept of an abstract class. What …

c# .net abstract-class base-class
Java abstract/interface design in Python

I have a number of classes which all share the same methods, only with different implementations. In Java, it would …

java python interface abstract-class
How to create a dynamic array of an Abstract class?

Lets say I have an abstract class Cat that has a few concrete subclasses Wildcat, Housecat, etc. I want my …

c++ arrays abstract-class abstract
How do you decide between using an Abstract Class and an Interface?

Duplicate: Interface vs Base class I have been getting deeper into the world of OOP, design patterns, and actionscript 3 and …

actionscript-3 oop interface abstract-class
Interfaces and abstract class inheritance, implementation in extended classes

In every example I've seen, extended classes implement the interfaces of their parents. For reference, the following example: interface MyInterface{ …

php inheritance interface abstract-class
What are the differences between abstract classes and interfaces in Java 8?

In Java there used to be a subtle but important difference between abstract classes and interfaces: default implementations. Abstract classes …

java interface abstract-class java-8 diamond-problem
Abstract classes vs. interfaces vs. mixins

Could someone please explain to me the differences between abstract classes, interfaces, and mixins? I've used each before in my …

oop interface terminology abstract-class mixins
Abstract constructor type in TypeScript

The type signature for a non-abstract class (non-abstract constructor function) in TypeScript is the following: declare type ConstructorFunction = new (...args: …

constructor typescript abstract-class