It would be better if you clarify me in brief or in Comparison . . .
Any Links regarding this is also highly apprecialted . .
Best answer:
Answer by Cubbi
Object-oriented programming is only one of the two programming paradigms that are given equal importance in C++. The other is generic programming.
Here’s the first (not the best) google hit on this topic: http://c2.com/cgi/wiki?GenericVsObjectOrientedProgramming . To quote,
Generics cannot:
    use behaviorally heterogeneous collections (for example, list of different implementations of common ABC)
    more generally, forget anything about the type of a datum
Objects cannot
    allow routines on compound types which make no assumptions about the component types
    more generally, define any polymorphic behavior without first defining an interface.
C++ allows both, and gives equal attention to both, which is why it is not an OOP-only language.
Although I have a feeling that whoever questioned that question expects an answer like ‘not every C++ data type is an object and not every C++ function is a member function of a class’ or ‘C++ allows a division of C to compile, which is not object-oriented’, but that’s all pretty much meaningless as far as OOP is concerned. Non-member functions are still parts of class interfaces (unless they are generics).
Know better? Leave your own answer in the comments!
Answers Rating