Thanks Muthuveerappan.
This still requires changing the code of BaseClass (the current implementation does not have an overloaded constructor.
I guess it is just poor design that I am dealing with,...
The reason I am inheriting is for code management. I am using the classes made available to me by other teams; these classes are typically large files. I need to make...
Thanks laserlight!
May I ask you the source of the c++ standard and is it readable for beginner/intermediate level programmer? (Google threw up some sites which were a little advanced for me)
...
Continuing on this theme, lets say I have 2 members, one with and one without default constructor. The one without a default constructor MUST appear in the...
[QUOTE=laserlight;1850269]
The use of an initialisation list would be necessary in some cases, e.g., to initialise const and reference member variables and those of types without a default...
I always thought that the stuff in header file (class name, its members function etc) is a declaration whereas the definitions are the details of those declarations that go in .cpp file. Is it...
Hi GCDEF,
I was still composing my earlier reply (and cross-referencing my code and c++ book) and didnt see your reply.
This explains it.
Thanks a lot.
Hi,
I have a hierarchical design of a class, say: BaseProcess, ....., MyXXXProcess.
The most derived class is not given a destructor. In this class, I m creating a array of another class, say...
Thanks for your comments. I tried a few approaches and realized that I cant do this because
1. I dont want to construct this second object
2. The '=' operator in this object was not working (it...
Sorry about that. I was just trying to post the sections of code that I suspected of having problems and thereby avoid unnecessarily large post with unrelated code. I was mistaken and I apologize as...
Here is the code: (its a long header file and I had to cut down on other details. Also, I had to change some names as this is a client's proprietary code)
Thanks for your response!
MyClass has a virtual destructor, so I guess those who wrote it did intend for it to be used as a polymorphic base class. In that case, I will go ahead with...
Dear All,
We have been provided libraries to work with. If any change is required to any definition, I see that in the past, programmers have copied the .cpp file from the library folder into the...