423,335 Members | 1,149 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,335 IT Pros & Developers. It's quick & easy.

justufy c++ as object oriented programing lnguage

P: 1
To what extend is c++ justified is an object oriented programing language
1 Week Ago #1
Share this Question
Share on Google+
1 Reply


weaknessforcats
Expert Mod 5K+
P: 9,163
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++.
5 Days Ago #2

Post your reply

Sign in to post your reply or Sign up for a free account.