Computer Science, asked by pathakshobha300033, 10 months ago

how does c++ structure differ from c++ class?​

Answers

Answered by Anonymous
3

Answer:

hope it will help you ✌️(◠‿◕)

Explanation:

The C++ class is an extension of the C language structure. Because the only difference between a structure and a class is that structure members have public access by default and class members have private access by default, you can use the keywords class or struct to define equivalent classes.

plzz mark me as brain list.....

follow me....(◍•ᴗ•◍)✧*。

Answered by dky21064
2

Answer:

The C++ class is an extension of the C language structure. Because the only difference between a structure and a class is that structure members have public access by default and class members have private access by default, you can use the keywords class or struct to define equivalent classes.

Similar questions