My code has been criticized as being "too object oriented" by some. Some people prefer large numbers of global void pointers I guess. I know in some cases OO code executes slower. But the code...
Type: Posts; User: u6022; Keyword(s):
My code has been criticized as being "too object oriented" by some. Some people prefer large numbers of global void pointers I guess. I know in some cases OO code executes slower. But the code...
Two types
(1) implementation
(2) interface
Differences in multiplicity and protection level have already been mentioned.
Encapsulation is hiding what is not needed by the user.
Abstraction separates the users "view" from the implementation.
Encapsulation makes things easier for the user of a class by hiding what...
The private constructor can be called from a static member of that class. Like:
class ClassA{ ClassA(); public: static void* create(){return new ClassA();}};
Another reason for a private...