C++ is not fully oops based

Last Edited By Krjb Donovan
Last Updated: Mar 11, 2014 07:51 PM GMT

Question

can we write a program in c++ without creating class? if yes then is it the only reason which makes c++ somewhat differnt from oops based langauges?

Answer

> can we write a program in c++ without creating class?

Yes, certainly.


> if yes then is it the only reason which makes c++ somewhat different from oops based languages?

C++ is a multi-paradigm programming language supporting the imperative, generic, data-abstraction and object-oriented paradigms fairly well, and it has some limited support for the functional programming paradigm. See: http://www2.research.att.com/~bs/bs_faq.html#multiparadigm

Pure oops based languages support only the object-oriented programming paradigm.

Advertisement

©2024 eLuminary LLC. All rights reserved.