I have read that the structure and classes have the same capability.
e.g. it can have data members and member functions, and you can also create an object of the class and structure.
I don't know if the information I read is complete or not but here I am formulated a question between structure and classes.
Since structure and classes have the same capability, why C++ is provided such feature that has the same capability? which one is better to use to create an object the class or the structure? This causes confusion somehow. Or is there any difference between?