Top "Abstract" questions

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

How do I create an abstract base class in JavaScript?

Is it possible to simulate abstract base class in JavaScript? What is the most elegant way to do it? Say, …

javascript oop abstract
Can we use static method in an abstract class?

In Java Programming, Can we call a static method of an abstract class? Yes I know we can't use static …

java interface static abstract
Extend data class in Kotlin

Data classes seem to be the replacement to the old-fashioned POJOs in Java. It is quite expectable that these classes …

inheritance kotlin abstract data-class
C++ Abstract Class: constructor yes or no?

A class with one (or more) virtual pure functions is abstract, and it can't be used to create a new …

c++ class constructor abstract
Why are C# interface methods not declared abstract or virtual?

C# methods in interfaces are declared without using the virtual keyword, and overridden in the derived class without using the …

c# methods interface abstract virtual-functions
Class is not Abstract and does not Override error in Java

I am getting a compile time error with Java: MyClass is not abstract and does not override abstract method onClassicControllerRemovedEvent( …

java overriding abstract
Why does PHP 5.2+ disallow abstract static class methods?

After enabling strict warnings in PHP 5.2, I saw a load of strict standards warnings from a project that was originally …

php oop static abstract
Why not abstract fields?

Why can't Java classes have abstract fields like they can have abstract methods? For example: I have two classes that …

java methods field abstract
Instantiating interfaces in Java

I have this interface: public interface Animal { public void Eat(String name); } And this code here implements the interface: public …

java interface abstract
How to get the current class name at runtime?

I'm trying to get a current class name into a string. For example: public class Marker : Mark { string currentclass = ???; } public …

c# class reflection abstract