|
-
Oct 31st, 2005, 05:54 PM
#1
Thread Starter
Hyperactive Member
Console Class
We have the namespace System. In that namesapce there is a class that is Console. If we want to print any string on the screen in the console apllication, we will write as,
System.Console.WriteLine("My Application");
As you know that when we create classes, we have to create an instance of the class, which we can say an object. After creating the object of the class, Now we can access all the member and method of the entire class. But my question is that without declaring any method of the Console class, we access its method like WriteLine, Why?
Why we did not declare the object of the consloe class and then we access its member and method of the console class.
Thanks
"Visual Studio .NET 2005/.NET Framework 2.0"
The eyes are the greatest telescopes, one will ever need to study the universe. Let the heart be the tripod, the mind be the shaft, then let the eyes become the lens of that great telescope of which God gave to us all.
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
|
Click Here to Expand Forum to Full Width
|