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.

Execute a derived constructor before the base constructor in C#

My problem here is that I would like to pass an object to a derived class, but it must be …

c# constructor abstract-class derived-class
template and derived class definition : error: 'myClass' is not a class, namespace, or enumeration

I'm trying to learn templates in C++ and I have the following code : #include <stack> template<typename …

c++ templates derived-class
Delete virtual function from a derived class

I have a virtual base class function which should never be used in a particular derived class. Is there a …

c++ inheritance c++11 derived-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
static abstract class

I need a way to create a static class where some constants can be case specific, but hard-coded. What I …

c# static derived-class
Derived and base class, can I set the base explicitly?

public class SuperCar: Car { public bool SuperWheels { get {return true; } } } public class Car { public bool HasSteeringWheel { get {return true;} } } How …

c# reflection copy-constructor derived-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
What is the difference between "extends" and "implements" in java with respect to performance and memory,etc

What is the difference between extends and implements in java with respect to performance and memory,etc. For example take …

java inheritance derived-class interface-implementation
Why doesn't a derived template class have access to a base template class' identifiers?

Consider: template <typename T> class Base { public: static const bool ZEROFILL = true; static const bool NO_ZEROFILL = false; } …

c++ templates derived-class c++-faq
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