Ask your own question, for FREE!
Computer Science 7 Online
OpenStudy (anonymous):

What's so great about C++? I'm just starting to learn about it and I still don't get the point of object-oriented programming; getters and setters and encapsulation can be done with C structs.

OpenStudy (anonymous):

And polymorphism with function pointers.

OpenStudy (anonymous):

and more structs :-D

OpenStudy (anonymous):

C structures ("structs") do not support 1. Member Functions (for polymorphism) 2. Access Specifiers (for so-called "data hiding") 3. Inheritance C is a structured programming language (only one paradigm) One the other hand, C++ is a multi paradigm programming lanaguage as it supports object oriented programming (to some extent) and structured programming. Will you please explain polymorphism via function pointers?

OpenStudy (anonymous):

Nobody explains object-oriented C better than http://www.cs.rit.edu/~ats/books/ooc.pdf

OpenStudy (anonymous):

gud link

OpenStudy (anonymous):

Here's a more detailed explanation: http://www.codeproject.com/KB/cpp/PolyC.aspx

OpenStudy (anonymous):

C++'s strength is in templates and RAII. and while the object-oriented stuff can easily be replicated in C, it's much nicer in C++.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!