An interface is similar to a class in the following ways: