2079 4

BIT153 ยท 2079 ยท 5 marks

Can we use object oriented concept using structure instead of classes? Justify your opinion.

Can we use object oriented concept using structure instead of classes? Justify your opinion. [5]

Object Oriented ProgrammingChapter 1: Object-Oriented Programming FundamentalsStructures versus classes

Yes, , to a significant extent, we can use object-oriented concepts using structures (struct) instead of classes. However, there are important limitations. Below is a justified explanation. --- In C++, a struct and a class are almost identical. The only default difference is access specifier: Fea...