2079 4

Object Oriented Programming20795 marksStructures versus classes

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]

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...

Up nextIn which case default argument is used? Describe with an example.