+ 1

What is differnce between classes in c++ and structures in c

classes seem similar to that of structure!!!

3rd May 2017, 6:04 AM
Manogna Sunkara
Manogna Sunkara - avatar
5 Réponses
+ 14
Structures provided in c are workaround for object oriented programming and lacks basic features of oop like encapsulation and proper abstraction.
3rd May 2017, 7:02 AM
Vaibhav Sharma
Vaibhav Sharma - avatar
+ 1
both are similar to each other
3rd May 2017, 7:00 AM
CHISTI JALAJAKSHI
CHISTI JALAJAKSHI - avatar
+ 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
3rd May 2017, 7:07 AM
Jilson Joseph
0
thanks😆
3rd May 2017, 4:57 PM
Manogna Sunkara
Manogna Sunkara - avatar
0
structure donot support inheritance and polymerisation
27th Jul 2020, 6:07 AM
Ambati Veda priya
Ambati Veda priya - avatar