Top "Base-class" questions

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

How to Get Base Class Instance from a Derived Class

I don't know if this is possible, but I am trying to get the Base Class instance from a Derived …

c# .net inheritance derived-class base-class
Can you override private functions defined in a base class?

I believe, a derived class can override only those functions which it inherited from the base class. Is my understanding …

c++ overriding derived-class base-class
how to get derived class name from base class

I have a base class Person and derived classes Manager and Employee. Now, what I would like to know is …

python plone derived-class base-class
Adding virtual removes the error : type 'base' is not a direct base of derived class

Conside the following sample code below: #include <iostream> using namespace std; class base { public: base() { cout << "…

c++ inheritance derived-class base-class
How do derived class constructors work in python?

I have the following base class: class NeuralNetworkBase: def __init__(self, numberOfInputs, numberOfHiddenNeurons, numberOfOutputs): self.inputLayer = numpy.zeros(shape = (numberOfInputs)) …

python constructor derived-class base-class
.NET: Unable to cast object to interface it implements

I have a class (TabControlH60) that both inherits from a base class (UserControl) and implements an interface (IFrameworkClient). I instantiate …

c# interface casting base-class activator
C++: Accessing parent methods and variables

In which way should I access this parent method and parent variable? class Base { public: std::string mWords; Base() { mWords = "…

c++ inheritance parent-child base-class
How can I polymorphic deserialization Json String using Java and Jackson Library?

I've some classes A, B, C they all inherit from class BaseClass. I've a String json that contains the json …

java json serialization jackson base-class
Python inheritance - calling base class methods inside child class?

It baffles me how I can't find a clear explanation of this anywhere. Why and when do you need to …

python class inheritance base-class overwrite
Abstract base class in Dart

I have been programming in Java for nearly two years but I am now more shifting to web programming and …

java oop dart abstract-class base-class