static void Main(string[] args) { PublicMessage mypubMsg = new PublicMessage(); mypubMsg.myPublicMessage(); mypubMsg.mySecretMessage(); }