Many years ago when I didn\'t know much about object oriented design I heard one guy said something like \"How开发者_JAVA技巧 can you write a text editor without polymorphism?\" I didn\'t know much ab
I\'m trying to use QSharedPointer in my polymorphic stucture, but I couldn\'t find right syntax to convert pointer of base class to pointer of derived class.
I\'m writing a windows application in C++ and encountered the following problem when working with exceptions.
Suppose we have an abstract class Element from which classes Triangle and Quadrilateral are derived from.
I have some actions... View, Edit, Checkout, etc. Business logic dictates that if a document is already checked out, all Views turn into Edits.
hi i have two classes, example: ftp1 (handles normal ftp stuff), ftp2 (handles secure ftp connections, and stuff). based on a configuration setting I need to instantiate a type that can be one of thes
I have an interface and a couple of implementations of a class that stores serialized objects.I\'d like to make the implementation classes into template classes so I can use them with more than one ty
I have the following situation below.This code will throw a compiler error for Test2 The type \'InheritedChild\' cannot be used as type parameter \'T\' in the generic type or method \'panelGenericIOG
In order to explain my problem here is an example namespace CheckAbstarct { class Program { static void Main(string[] args)
UPDATE: after posting, I discovered this is a duplicate of this older question. I have an odd business requirement: my application supports users getting started as \"Guests\", then later registeri