Top "Abstract-class" questions

Abstract classes are classes which cannot be instantiated.

What is the difference between an interface and abstract class?

What exactly is the difference between an interface and abstract class?

oop interface abstract-class
Interface vs Abstract Class (general OO)

I have had recently two telephone interviews where I've been asked about the differences between an Interface and an Abstract …

oop interface abstract-class
Can an abstract class have a constructor?

Can an abstract class have a constructor? If so, how can it be used and for what purposes?

java constructor abstract-class
How do you declare an interface in C++?

How do I setup a class that represents an interface? Is this just an abstract base class?

c++ inheritance interface abstract-class pure-virtual
How should I have explained the difference between an Interface and an Abstract class?

In one of my interviews, I have been asked to explain the difference between an Interface and an Abstract class. …

java oop inheritance interface abstract-class
Difference between abstract class and interface in Python

What is the difference between abstract class and interface in Python?

python interface abstract-class
When to use an interface instead of an abstract class and vice versa?

This may be a generic OOP question. I wanted to do a generic comparison between an interface and an abstract …

oop inheritance interface abstract-class
Why can't static methods be abstract in Java?

The question is in Java why can't I define an abstract static method? for example abstract class foo { abstract void …

java abstract-class static-methods
Is it possible to make abstract classes in Python?

How can I make a class or method abstract in Python? I tried redefining __new__() like so: class F: def __…

python class inheritance abstract-class abstract
Abstract class in Java

What is an "abstract class" in Java?

java oop interface abstract-class