Question: I have a class `Company`.

Inside my class i want to declare a string `LanguageCode` which gets is value from another class `Language`.

Like this:

```
public class Company : Entity  
{    
    public string LanguageCode
     {  
         get
         {
            Language l = new Language();              
            string language = l.Name;
            return language;
         }
         set { ;}
     }
}

```

When running I am not getting any error but is it correct way to create a new instance of a class in get {};

Answer: 
Create a Language object in the constructor

```
public class Company : Entity  
{    
    private Language l;

    public Company()
    {
        l = new Language();  
    }

    public string LanguageCode
    {  
     get
        {
            string language = l.Name;
            return language;
        }

    }
}

```
Your solution is not very wise. Every time, you call getter, you will get new instance of Language. I believe, that you should declare language instance inside your class.

```
class Company : Entity 
{
   private Language l;

    public Company()
    {
        this.l = new Language();  
    }

   public string LanguageCode
     {  
         get
         {            
            return this.l.Name;
         }         
     }

}

```