By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,222 Members | 1,728 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,222 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
Sep 15 '18 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 9,197
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++.
Sep 16 '18 #2

Post your reply

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