Top "Base-class" questions

In Object Oriented Programming, a base class is one from which other classes inherit.

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
Why use base class pointers for derived classes

class base{ ..... virtual void function1(); virtual void function2(); }; class derived::public base{ int function1(); int function2(); }; int main() { derived d; …

c++ oop polymorphism virtual-functions base-class
Derived Class Constructor Calls

If I have a base class: class Base{ ... }; and a derived class class Derived : public Base{ ... } does this derived class …

c++ inheritance constructor derived-class base-class
need to call the base destructor method from a derived class in c++?

please consider the following class base{ base(); ~base(); }: class derived : public base{ }; Does a base class destructor is automatically invoked …

c++ destructor derived-class base-class
Calling a constructor of the base class from a subclass' constructor body

I was under impression that it's impossible, see for example: Calling the constructor of the base class after some other …

c++ constructor base-class
Call derived class method from base class reference

class Material { public: void foo() { cout << "Class Material"; } }; class Unusual_Material : public Material { public: void foo() { cout <&…

c++ derived-class base-class
What are good candidates for base controller class in ASP.NET MVC?

I've seen a lot of people talk about using base controllers in their ASP.NET MVC projects. The typical examples …

asp.net-mvc controller base-class
How to avoid error "Constructor on type 'MyType' not found" when inheriting a base class

I have a Visual Studio 2010 Windows Forms app which includes a Form base class that other classes will inherit. The …

c# visual-studio-2010 inheritance windows-forms-designer base-class
How to call an explicitly implemented interface-method on the base class

I have a situation, where two classes (one deriving from the other) both implement the same interface explicitly: interface I { …

c# interface base-class explicit-implementation
c++ casting base class to derived class mess

If I were to create a base class called base and derived classes called derived_1, derived_2 etc... I use a …

c++ class casting derived-class base-class