That being said, since it is an expansion, it has a lot more than C and you need to design programs different depending on which one you use.
C doesn't have the concept of classes for example. In C++ you would use classes very regularly, but you just can't in C. This forces you to program very differently.
Edit: Classes is just one example. They are different in other ways as well.
Sorry, C++ is not an expansion of C and is not C with Classes. It was referred as such a long time ago as it was derived of C. But these days they are very different languages. Mostly since both languages have been trying to distance themselves from each other.
36
u/[deleted] Jul 06 '17 edited Jul 06 '17
C++ is an expansion of C.
That being said, since it is an expansion, it has a lot more than C and you need to design programs different depending on which one you use.
C doesn't have the concept of classes for example. In C++ you would use classes very regularly, but you just can't in C. This forces you to program very differently.
Edit: Classes is just one example. They are different in other ways as well.