+ 1
What is differnce between classes in c++ and structures in c
classes seem similar to that of structure!!!
5 Answers
+ 14
Structures provided in c are workaround for object oriented programming and lacks basic features of oop like encapsulation and proper abstraction.
+ 1
both are similar to each other
+ 1
By default all members of structure are public
and there are no access specifiers such as private, protected, public
In class by default all members are private
and in a class we can use access specifiers such as private, protected, public
0
thanksđ
0
structure donot support inheritance and polymerisation