Let\'s say I have type A, and a derived type B. When I perform a dynamic cast from A* to B*, what kind of \"runtime checks\" the environment performs? How does it know that the cast is legal?
Let\'s say I\'ve got class: class Bad_Date { private: const char* _my_msg; public: const char* msg() const {
I have problem with STI and relationship in ActiveRecord. I think I missed something in the class methods, but I don\'t know for sure. Below is my models:
I\'ve learned all these programming terms in Swedish so please bear with me.. I\'m having problems calling a method in a subclass which should override a method in the superclass.
I have a Abstract Iterator classwhich has thisfunction void iterate(){ while(this.hasnext()){ ..this.next()..
Originally I had a design problem where I needed five subclasses of a superclass, where all but two would use the same generic method of doing things and the other two classes would 开发者_JAVA百科nee
C开发者_运维知识库onsider the code : #include <stdio.h> class Base { public: virtual void gogo(int a){
Once and for all I want to clearify this somewhat subjective and argumentative area of programming. Multiple inheritnace
I\'m working on a somewhat complex mathematical code, written in C++. I\'m using (templated) tree structures for adaptive function representation. Due to some mathematical properties I end up in a sit
If I use inheritance, and later realize that a single subclass needs a method or fie开发者_Go百科ld that is not available, should I declare that in the base class and not have it implemented in the ot