Computer Science, asked by rajpootq78, 9 months ago

Which concept of oop is false for c++?

Answers

Answered by Naeemhamid
2

Answer:

Which concept of OOP is false for C++? Explanation: In C++, it's not necessary to use classes, and hence codes can be written without using OOP concept. Classes may or may not contain member functions, so it's not a necessary condition in C++.

Explanation:

please fallow me and marks as brainlist...

Answered by smartbrainz
0

C++ is considered to be a partial Object Oriented Programming Language.

  • The main features of Object Oriented Programming are : Encapsulation, Abstraction, Inheritance, and Polymorphism.
  • C++ was developed to add OOP concepts to it's predecessor C. Though it supports all aspects of OOP but it does not follow them completely.
  • In C++, there is a Main mandatory function outside the class and it is optional to use objects and classes. This is a clear violation of OOP concept.
  • In C++, global variables are declared outside the program but may be used by any other entity of the program. This is against the feature of Encapsulation.
  • C++  supports the use of a friend class that can access the private members of other classes. Again, this is a deviation from the concepts of Object Oriented Programming.

To know more about OOP, visit:

https://brainly.in/question/2699159

Similar questions