Can we define a Static function in a class with two other non-static?Is it necessary for every function to be static in static class?
Loading
Can we define a Static function in a class with two other non-static?Is it necessary for every function to be static in static class?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Fernando SotoPosted Jun 15, 2008, 11:15 AM
A class can have both static and non-static members in it. However static function/members can not make any reference to a non-static members of the class.
A static class must contain only static members / types.
Fernando