#450 – Interfaces Should Normally Start with the Letter ‘I’

Interface names will typically start with the letter I, to help distinguish them from classes.

    interface IMoo
    {
        void Moo();
    }

Starting the name of an interface with the letter I is only an agreed-upon convention.  The name of the interface could actually be any valid type name.  But starting the interface name with the letter I helps readers of your code realize that the type is an interface type, rather than a class.

Advertisement

About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: