开发者

Why c++ is called an object oriented programming language? [closed]

It's difficult to tell wha开发者_运维问答t is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

Why c++ is called an object oriented programming language?


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


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜