justufy c++ as object oriented programing lnguage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • solomon2238
    New Member
    • Sep 2018
    • 1

    justufy c++ as object oriented programing lnguage

    To what extend is c++ justified is an object oriented programing language
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    C++ is not an object-oriented language.

    It is a 3rd generation structured language like C.

    However, object oriented coding has become fashionable so various OO features have been added to C to make it appear object-oriented. But it's not.

    Check it out. Write a class with member functions. Declare each member function public or private. Compile the code and run it.

    Now change the word "class" to "struct". You can recompile the code and run it as before.

    There are no classes in C++.

    Comment

    Working...