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?
> 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