Link to home
Start Free TrialLog in
Avatar of ukerandi
ukerandiFlag for United Kingdom of Great Britain and Northern Ireland

asked on

C# Abstract class issue

Hi I wrote Abstarct class but i need to know this correct,i feel something is not write see below my code
Abstarct class
 abstract class Display
    {

       public abstract void DisplayDetails();
        

    }
}

Open in new window


Calling
 class Email:Display
    {

        private string strEmail;
        private string fromPassword = "123456";

        public string EmailResults
        {
            get { return this.strEmail; }
            set { this.strEmail = value; }
        }

        public override void DisplayDetails()
        {
            EmailResults = "Send email successfully!!!";
        }

Open in new window


Please let someone know where is wrong ,how to do implement with abstract class.thx
SOLUTION
Avatar of Dmitry G
Dmitry G
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ukerandi

ASKER

great