public void PrintDetails() { Accept a = new Accept(); a.AcceptDetails(); System.Console.Write("Hello " + a.firstname + " " + a.lastname + "!!!\nYou have Created Classes in OOP"); MyProfile mp = new MyProfile(); mp.DisplayProfile(); }
public void PrintDetails() { Accept a = new Accept(); a.AcceptDetails(); System.Console.Write("\nHello " + a.firstname + " " + a.lastname + "!!!\nYou have created classes in OOP\n\n"); Myprofile mp = new Myprofile(); mp.MyProfileDetails(); }
static void Main(string[] args) { Accept a = new Accept(); a.AcceptDetails(); Print AcceptDetails; AcceptDetails = new Print(a.firstname, a.lastname); Console.WriteLine(AcceptDetails.Describe()); MyProfile mp = new MyProfile(); mp.DisplayMyProfile(); Console.ReadLine(); }