|
-
Simple Class Variables question
You define a "class", and inside the class you have a couple of variables.
One variable is static, the other is not.
Question:
Class Test
{
static string name;
int age;
a few functions etc
}
Using the above, identify the class variables. Now, to MY way of thinking
both "name" and "age" are class variables. However others say that only
"name" is a class variable because it is static.
Comments please!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks