Are structs still around? I know that you can *technically* use them in C++ but I've never seen them called for in any C++ book I have, and tbh I have NEVER seen a struct used in JavaIn C++ a struct and a class are exactly the same -- the only difference is that when using the struct keyword, the default access is 'public' and when using the class keyword the default keyword is 'private'.
For situations where you just need to pass around some data without enforcing invariants (which is what getters/setters are for), then using structs is fine.
They're often used to simplify function calls that require many arguments.
e.g.
public class BallParameters
{
public int size, mass, foo, bar, baz;
}
public class Ball
{
public Ball( BallParameters params ) { mass = params.mass; image = new Image("ball", size); }
private int mass;
private Sprite image;
}