Why c++ is called an object oriented programming language?
+4
A:
Have you seen the fundamental concepts of object orientation?
- inheritance
- abstraction
- encapsulation
- polymorphism
- ...
- classes
- instances
- methods
- decoupling
Just compare them to what C++ allows you (taken from here):
[C++] offers classes, which provide the four features commonly present in OO (and some non-OO) languages: abstraction, encapsulation, inheritance, and polymorphism
tanascius
2010-06-10 10:36:13
@downvoter: please leave a comment - I'd like to know the problem on my own.
tanascius
2010-06-10 14:48:49
A:
Because it deals with 'objects", which are basically in memory representations of a data structure and it's associated behaviours.
You should read a tutorial on objects and object-oriented programming languages for more info.
Tony
2010-06-10 10:36:14
A:
why c++ is called oject oriented programming language?
Because it has virtual functions? By the way, C++ isn't just an Object-Oriented Programming Language.
FredOverflow
2010-06-10 10:47:56
Why the downvote? C with classes didn't have virtual functions and wasn't considered OO, while C++ was considered OO from the start because it has virtual functions. In my opinion, late binding a.k.a. dynamic polymorphism is the most important ingredient of OO.
FredOverflow
2010-06-10 15:27:55