This has most likely been asked before, but Google still won't allow
certain search strings such as "public:".
In CPP, you can declare a class such as...
class Foo
{
public:
Foo()
{
}
~Foo()
{
}
int m_Bar1;
int m_Bar2;
int m_Bar3;
};
If an object is based on Foo, then all of the class' members will be
accessible to it.
whereas in C# it would seem to be...
class Foo
{
public Foo()
{
}
~Foo()
{
}
public int m_Bar1;
public int m_Bar2;
public int m_Bar3;
}
Can I define "blocks" of public variables in C# or must I practice my
typing on the word "public" for *every* public member and member function?
Thanks,
Brian