Hi i have been working on this code for a long time but i keep on getting the same error:

Type Expected
Invalid token '{' in class, struct, or interface member declaration

the code is something like this:

//vehicle.cs
namespace ConsoleApplication3
{
    interface vehicle
    {
        void displayName();


    }
}

//Car.cs

namespace ConsoleApplication3
{
    class Car : public vehicle
    {
        void displayName() 
        { 
        }
    }
}

can someone be kind to explain to me why and help me solve this problem? thanks a lot..

Leave out a public keyword like this:

interface vehicle { void displayName();}
        class Car : vehicle    
        {        
            void displayName()         
            {         
            }    
        }