logoalt Hacker News

ape4 • today at 2:38 PM • 1 reply • view on HN

Exactly. Many years ago people used to use C `struct` for objects but then that was formalized as `class`.


Replies

tialaramex • today at 3:05 PM

C++ "class" is the exact same user-defined type as C++ "struct" but with different defaults for privacy.

➕ show 1 reply