Question: I have this class file call **SMSHelper.cs** First I just wanted to know is my written structure is Correct or Wrong?(My class file name is also SMSHelper.cs & my first class also SMSHelper here you can see in the code.).

Basically I have 3 classes in same file. One class has the same name as the file name.

```
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
using System.Text.RegularExpressions;

namespace SMSBase.SMSFunction
{
public class SMSHelper : DotNetNuke.Entities.Modules.PortalModuleBase
{
 // Some Code here 
 // Return Something here
}
 public class Validator
   {
    public bool IsValidate(string Item)
    { 
    // Some Code Here Not return anything

 }

  public class HuntingDate
     {
    //Implementation & Constructor here.. Return Something
    }

    }

}

```

Answer: 
There is nothing wrong in your class structure (except one missing bracket). And there is no matter your class name and file name are same. You can access and initialize your class objects like that...

```
SMSBase.SMSFunction.SMSHelper objSMSHelper = new SMSBase.SMSFunction.SMSHelper();

SMSBase.SMSFunction.Validator objValidator = new SMSBase.SMSFunction.Validator();

SMSBase.SMSFunction.HuntingDate objHuntingDate = new SMSBase.SMSFunction.HuntingDate();

```

This `SMSBase.SMSFunction` is your namespace... you can access classes by your namespace or include this namespace in the class header like

```
using SMSBase.SMSFunction

```
There is a problem in opening closing brackets:

```
namespace SMSBase.SMSFunction 
{ 
public class SMSHelper : DotNetNuke.Entities.Modules.PortalModuleBase 
{  // Some Code here   // Return Something here 
}  
public class Validator    
{     
public bool IsValidate(string Item)    
 {      // Some Code Here Not return anything 

 }
}   
 public class HuntingDate     
 {     //Implementation & Constructor here.. Return Something   
 }      

 } 

```

If that is what you are asking.