Abstract Class
An abstract class is a class that cannot be instantiated directly and is designed to be subclassed, often providing shared implementation alongside one or more abstract methods that subclasses must implement.
10 resources across 2 libraries
Glossary Terms(5)
Interfaces
An interface defines a contract of methods and properties that a class or object must implement, specifying what operations are available without dictating how…
Abstract Class
An abstract class is a class that cannot be instantiated directly and is designed to be subclassed, often providing shared implementation alongside one or more…
Polymorphism
Polymorphism is an object-oriented programming principle that allows objects of different classes to be treated through a common interface, with each object re…
Inheritance
Inheritance is an object-oriented programming mechanism that allows a class to acquire the properties and methods of another class, letting a subclass reuse an…
Inversion of Control
Inversion of control (IoC) is a design principle in which the flow of control in a program is handed over to a framework or external system, rather than the ap…
Interview Questions(5)
What is a Virtual Function?
A virtual function is a member function declared in a base class that a derived class can override, with the actual implementation resolved at runtime based on…
Abstract Class vs Interface: When to Use Which?
Use an abstract class when related types share common state and partial implementation you want to reuse, and use an interface when you only need to declare a…
What is a Pure Virtual Function?
A pure virtual function is a C++ member function declared with '= 0' that has no implementation in the class that declares it, forcing every concrete (non-abst…
What is an Abstract Method?
An abstract method is a method declared with a signature but no body, defined only inside an abstract class or interface, which every concrete subclass or impl…
Concrete Class vs Abstract Class
A concrete class is a fully implemented class that can be instantiated directly with `new`, while an abstract class may leave one or more methods unimplemented…