When 'struct' is used instead of the keyword 'class' what will happen in the program?
Answers
Answered by
0
the difference between struct and class is..
struct::: the default specified (data member and data member function) are public you can use outside of struct... the data memeber and data-member function...
class:: the default specified (data member and data member function) are private we can not use outside of class... the data memeber and data-member function...
struct::: the default specified (data member and data member function) are public you can use outside of struct... the data memeber and data-member function...
class:: the default specified (data member and data member function) are private we can not use outside of class... the data memeber and data-member function...
Similar questions