Is it possible to make a program in c++ without using classes and objects???? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Is it possible to make a program in c++ without using classes and objects????

11th Apr 2020, 2:15 AM
Dolly Choudhary
Dolly Choudhary - avatar
5 Answers
+ 5
Yes , it is very much possible to do so. As C++ is derived from C (which was not having object oriented programming at all) so everything that you can do in C can also be done in C++ also
11th Apr 2020, 3:08 AM
Arsenic
Arsenic - avatar
+ 3
Yes, it is possible, is named secuential programming
11th Apr 2020, 3:33 AM
Cmurio
Cmurio - avatar
+ 3
Yes u can make c++ program without class like in c . U make a class because u dont want to re-write your code again in future when u need same code . Class is modern approach to solve problem u can make your code part by part according to your problm and you can find bug errors easily .
12th Apr 2020, 12:42 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
Yes it is possible and what many people call by C style C++ programming. I actually do that all the time unless I need to use a class.
11th Apr 2020, 7:30 AM
RinasSam
RinasSam - avatar
+ 1
Yes it is possible As C++ is the extension of Official C language So it the combination of both procedure oriented and object oriented programming language
12th Apr 2020, 7:50 PM
Vineethkumar Avula
Vineethkumar Avula - avatar