There is a base class: template<class T_CLASS> class TBase { protected: static CSomeClass m_objSomeClass;
Using C#/.NET 4.0 I was hoping the following scenario would be possible: interface IA<out TB> where TB : IB { }
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?
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
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):
I have a recursive class, a kind of tree, that has instances of itself as member variables.For example:
I have a problem that I\'m not sure how to approach, and I\'m hoping the people here will have some good tips.
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:
Hey guys, im having problems when i want to create a class Called Files that uses fstream #include<iostream>
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: