derived-class
How do I use an XmlSerializer to deserialize an object that might be of a base or derived class without knowing the type beforehand?
In C#, how do I use an XmlSerializer to deserialize an object that might be of a base class, or of any of several derived classes without knowing the type beforehand?[详细]
2023-02-06 23:31 分类:问答Making a copy of an object of abstract base class
If I have a pointer to an object that derives from an abstract base class (so I cannot create an new object of that class), and I wish to make a deep copy of said object开发者_Go百科, is there a more[详细]
2023-02-05 16:35 分类:问答How to overcome need to derive from multiple classes when creating a custom control in WPF
I know that C# isn\'t C++ in terms that it restricts you from deriving from multiple classes, but what are the ways to overcome it when developing a WPF application.[详细]
2023-02-05 11:50 分类:问答C++ reinterpret_cast for derived class
Parent class: template <clas开发者_运维知识库s T> class Point { protected T x; T y; }; Derived class:[详细]
2023-02-05 10:13 分类:问答How to access protected method in base class from derived class?
Here is a sample of code that annoys me: class Base { protected: virtual void foo() = 0; }; class Derived : public Base {[详细]
2023-02-03 17:25 分类:问答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 开发者_如何学Ca collection of instances of the base class, then when I retrieved an element an[详细]
2023-02-03 16:40 分类:问答Method having an abstract class as a parameter
I have an abstract class A, where I have derived the classes B and C. Class A provides an abstract method DoJOB(), which is implemented by both derived classes.[详细]
2023-02-03 03:20 分类:问答How to overload and call a method in a derived class which was previously defined in its base class?
This is the base class: template <class T> class DataLogger { // ... public: void AddData(T Data); // ...[详细]
2023-02-03 01:40 分类:问答C++ subclass that derives from classes that derive from the same class
Why is the following inheritance structure not legitimate in C++? Son1 derives from Father1 Son2 derives from Father1[详细]
2023-02-02 08:05 分类:问答Strange error c2660 "function does not take 1 arguments"
My base class has this function LRESULT CBaseClass::OnTestFunction(WPARAM id, LPARAM=0) { ... } Wh开发者_StackOverflow中文版en the derived class calls this function[详细]
2023-01-30 17:37 分类:问答