Messagebox is class or object?
<p>I am in the beginners level to learn C#. Normally in C++ if we need to access the methods/values of the class we have to declare an object instance and thru object only we can access the method. But in C#.Net I came to know for static public class we dont need to declare the object, directly we can call the method using class.method() name. Could you pls clarify me when we refer the standard class library classes, such as messagebox.</p>

<p>System.Windows.MessageBox.ToShow()</p>

<p>System.Windows - Its name space.<br>
ToShow         - Its Method<br>
MessageBox     - Messagebox is class or object here?  </p>

<p>I beleive for all the standard .NET class library namespaces internally create the object instances thru constructors when we refer any of the method belongs to the class. Its always object name is same as class name as its created by constructor. pls correct me if my understanding is wrong.</p>

<p>Thanks,
Karikalan</p>
