Top "Derived" questions

How to avoid memory leaks when using a vector of pointers to dynamically allocated objects in C++?

I'm using a vector of pointers to objects. These objects are derived from a base class, and are being dynamically …

c++ stl pointers vector derived
Does a derived class automatically have all the attributes of the base class?

There seems to be no good online documentation on this: If I make a derived class, will it automatically have …

python class inheritance attributes derived
C and derived data types?

I know the fundamental data types in C - char, int, float etc. But What exactly are derived data types …

c types primitive-types derived
implementing abstract methods/classes in java

Can I implement abstract methods in an abstract base class A in java? If the answer is yes and there …

java methods abstraction base derived
Get derived type via base class virtual function

I am trying to get the derived type of an object via a base class virtual function. I have written …

c++ types derived
Redefining vs. Overriding in C++

I am confused about the differences between redefining and overriding functions in derived classes. I know that - In C++, …

c++ class inheritance base derived
access base class variable in derived class

class Program { static void Main(string[] args) { baseClass obj = new baseClass(); obj.intF = 5; obj.intS = 4; child obj1 = new child(); Console.…

c# variables base derived
Transaction has ended in trigger. Batch has been aborted. Derived Attribute

I have this trigger : CREATE trigger [dbo].[DeriveTheAge] on [dbo].[Student] after insert,update as begin declare @sid as int; …

sql-server visual-studio-2008 triggers derived
C# XML serialization of derived classes

Hi I am trying to serialize an array of objects which are derived from a class and I keep hitting …

c# xml class derived
Why would the conversion between derived* to base* fails with private inheritance?

Here is my code - #include<iostream> using namespace std; class base { public: void sid() { } }; class derived : private …

c++ private base derived accessible