What's the proper way of creating a simple entity class in C++ whose only purpose is to store publicly accessible variables? In Java, for example, I'd do something like this...
1 2 3 4 5 6 7
publicclass Properties{
publicint port;
public String url;
//etc...
public Properties() {}
}
Would I only need a header file for something like this in C++?
Ah, I see. What if I needed to declare a variable array inside the struct? I've googled around on this subject but haven't found anything useful so far.