Some insight here:
The real difference between struct and class[
^].
Quote:
And also i want to know that why we use OOP instead of structured programming which is too simple to write and understand and we don't need to work extra on making classes and others
C++
is a multi paradigm language, if like, you may use it as a
'better C', following structured programming principles. In my opinion
OOP
has its advantages, expecially on big projects.