Solution: Confidential Documents

Review the explicit interface implementation to see how naming collisions are securely resolved for confidential documents.

Solution: Confidential Documents

Review the explicit interface implementation to see how naming collisions are securely resolved for confidential documents.
C# 14.0
namespace Security;
public interface IPrintable
{
void Process();
}
public interface IEncryptable
{
void Process();
}
public class TopSecretBriefing : IPrintable, IEncryptable
{
void IPrintable.Process()
{
Console.WriteLine("Printing physical copy...");
}
void IEncryptable.Process()
{
Console.WriteLine("Encrypting digital file...");
}
}