Quiz · Inheritance and interfaces · lesson 8 of 10Quiz — an interfaceWhat is an interface in C#, and how does a class relate to one?[A]An interface is a base class with ready-made code and fields: a class inherits all of it exactly as is, without writing a single member of its own, and just as with any base class, a class can have only one interface at a time.[B]An interface lists the members a class must have, but the class implements them as private, so only the class's own code can call them, and a variable of the interface type cannot reach them.[C]An interface is a contract: a list of members, usually without bodies, that a class promises to have; it holds no instance fields or constructors. A class implements it with public members and may implement several interfaces.[D]An interface is only a hint for the people who read the code: the compiler never checks it, so a class may lack any of the listed members, and the mistake shows up only later, when the running program tries to call the missing member.← BackInterfacesNext →Type checks: is and as