derived-class
static member definition with template base class
There is a base class: template<class T_CLASS> class TBase { protected: static CSomeClass m_objSomeClass;[详细]
2023-03-23 09:20 分类:问答C# covariance on abstractly implemented interface
Using C#/.NET 4.0 I was hoping the following scenario would be possible: interface IA<out TB> where TB : IB { }[详细]
2023-03-21 00:14 分类:问答create instance of unknown derived class in C++
let\'s say I have a pointer to some base class and I want to create a new instance of this object\'s derived class. How can I do this?[详细]
2023-03-19 02:08 分类:问答System.Web.Ui.Page derived class that can have page events extended?
I have created a BasePage class that inherits from System.Web.Ui.Page. In that base class I have a bool property that checks to see if a page is secure or not. Initially, I put the code in the PreInit[详细]
2023-03-16 17:42 分类:问答select derived class file global variable by base class virtual function
This is a common problem I am facing. I am intended to write a derived class for an existing code. Let me provide the code snippet (just example):[详细]
2023-03-15 13:35 分类:问答How to derive from/extend a recursive class
I have a recursive class, a kind of tree, that has instances of itself as member variables.For example:[详细]
2023-03-14 17:13 分类:问答Recasting to Derived Type
I have a problem that I\'m not sure how to approach, and I\'m hoping the people here will have some good tips.[详细]
2023-03-14 10:48 分类:问答Subclass and use base class initialiser
I have this: class foo { public: int a; int b; int c; }; Which is fine, but I want to add some operator overloading without modifying class foo:[详细]
2023-03-10 17:59 分类:问答how to implement a class that inherits form fstream
Hey guys, im having problems when i want to create a class Called Files that uses fstream #include<iostream>[详细]
2023-03-08 13:40 分类:问答Constraint syntax with generics, also deriving from a class
I\'m having a heck of an issue with the following:I have a generic class, with a constraint, that derives from a non-generic interface:[详细]
2023-03-07 15:33 分类:问答