If I have this class:
class G
{
Texture a, b, c;
}
and
class F
{
Texture a;
Texture b;
Texture c;
}
is there a difference in what access modifier is assigned or both are equivalent and thus how write them is only a style-preference?
There is no functional difference;
a,bandcwill all be declared asprivate Texturefields. (privateis the default access modifier for members of a class.)Whether you choose to use one access modifier and type declaration for each one, or for all three, is purely stylistic.