+ 1

Why C++ is needed?

2nd Apr 2018, 5:13 AM
Nadhannagaru Sridhar
Nadhannagaru Sridhar - avatar
2 Answers
+ 1
It's useful because you can create objects, representing real world objects, or useful abstract objects. Example, you could create an object called WashProgramme, which represented the wash cycle of a washing machine. WashProgramme* wp = new WashProgramme(); wp->set_temperature(40); wp->set_wash_type(COLOURS); wp->start_cycle (); This makes it easier to understand and test the code in some ways.
2nd Apr 2018, 5:24 AM
Emma