Why use class instead of struct in C++ when they have only minor differences in access control?
I have consulted many sources, including videos and books, but have not found relevant information. The materials only explain their relationship, but do not elaborate on why class was introduced. Can't object-oriented programming be done using struct?