Top "Derived-class" questions

In Object Oriented languages, derived class can inherit properties and/or member functions from a base class, also called super class.

Virtual Table C++

I read a lot of people writing "a virtual table exists for a class that has a virtual function declared …

c++ derived-class virtual-functions vtable
In C# 4.0, is it possible to derive a class from a generic type parameter?

I've been trying this, but I can't seem to figure this out. I want to do this... public abstract class …

c# generics inheritance subclass derived-class
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
Not calling base class constructor from derived class

Say I have a base class: class baseClass { public: baseClass() { }; }; And a derived class: class derClass : public baseClass { public: derClass() { }; }; …

c++ class derived-class
Unable to cast Base class (data contract) to derived class

[DataContract] public class SearchCriteria { [DataMember] public string CountryID { get; set; } } [DataContract] public class CitySearchCriteria: SearchCriteria { [DataMember] public string CityID { get; …

c# oop casting datacontract derived-class
What is the difference between a child of a parent class and the derived of a base class in VB.NET or C#?

After asking the question Call a method that requires a derived class instance typed as base class in VB.NET …

c# vb.net parent-child derived-class
C#: Determine derived object type from a base class static method

In a C# program, I have an abstract base class with a static "Create" method. The Create method is used …

c# static-methods derived-class
Constructor and Destructor Inheritance

I believe Constructors and Destructors in base class cannot be inherited by derived classes of the base class. Is my …

c++ inheritance derived-class base-class
Why does my C++ subclass need an explicit constructor?

I have a base class that declares and defines a constructor, but for some reason my publicly derived class is …

c++ constructor default derived-class
Can I pass arguments to a base constructor from a derived class's default constructor?

Suppose I have an abstract base class Deck: public abstract class Deck { public List<Card> cards; public Deck(…

c# constructor abstract-class derived-class