logoalt Hacker News

tialaramexyesterday at 1:36 PM0 repliesview on HN

> Just cus structs and classes work differently

The most common programming language where "struct" and "class" are both kinds of user defined type is C++. In C++ they only "work differently" in that the default accessibility is different, a "struct" is the same as a "class" if you change the accessibility to public at the top with an access specifier.

If you think you saw a bigger difference you're wrong.