Top "Abstract-class" questions

Abstract classes are classes which cannot be instantiated.

Abstract Class vs Interface in C++

Possible Duplicate: How do you declare an interface in C++? This is a general question about C++. As you know, …

c++ interface abstract-class
Constructor of an abstract class in C#

Why is it possible to write constructor for an abstract class in C#? As far as I know we can't …

c# constructor abstract-class
Using Mockito to test abstract classes

I'd like to test an abstract class. Sure, I can manually write a mock that inherits from the class. Can …

java unit-testing mocking abstract-class mockito
When do I have to use interfaces instead of abstract classes?

I was wondering when I should use interfaces. Lets think about the following: public abstract class Vehicle { abstract float getSpeed(); } …

java oop inheritance interface abstract-class
Creating an abstract class in Objective-C

I'm originally a Java programmer who now works with Objective-C. I'd like to create an abstract class, but that doesn't …

objective-c abstract-class
Interfaces vs. abstract classes

In C#, when should you use interfaces and when should you use abstract classes? What can be the deciding factor?

c# inheritance interface abstract-class
How to unit test abstract classes: extend with stubs?

I was wondering how to unit test abstract classes, and classes that extend abstract classes. Should I test the abstract …

java unit-testing testing abstract-class
Why an abstract class implementing an interface can miss the declaration/implementation of one of the interface's methods?

A curious thing happens in Java when you use an abstract class to implement an interface: some of the interface's …

java interface abstract-class
Class is not abstract and does not override abstract method

So I've been working on a homework on abstraction for my programming class and fell into a problem. The goal …

java inheritance abstract-class draw
When to use: Java 8+ interface default method, vs. abstract method

Java 8 allows for default implementation of methods in interfaces called Default Methods. I am confused between when would I use …

java interface java-8 abstract-class default-method