开发者

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

开发者 https://www.devze.com 2023-01-03 12:20 出处:网络
It's difficult to tell wha开发者_运维问答t is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form.
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

精彩评论

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