Thursday, July 28, 2005

More C++ Notes

Started to relearn C++ again:

Here are some things I wish to note:

using namespace FRN_MAIN
- using software components from the FRN_MAIN libaries
- makes the libaries + functions unique from other libs. Good for libs that have the same method / function names--> so qualifiy the name space.
- Each namespace defines a scope where global ident + global variables are place

You can also explicitly use the name space in the manor of
namespace _name::member

---
Note on Extern

extern "C" function prototype
extern "C" function { blocks }
- tell the compiler do not compile the extern in C++ do it at the linker level.

Polymorphism / Dynamic allocated Objects
virtual
-Destructors
- in an inherited situation calling delete on an object will use the base class destructor use virtual to get around this issue.

0 Comments:

Post a Comment

<< Home