tags:

views:

167

answers:

3

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
@downvoter: please leave a comment - I'd like to know the problem on my own.
tanascius
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
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
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