Hello friends ,
i am new in C#.net.I read about Abstraction,Inheritance etc. in Console application.but how can use these concepts in Windows or web apps.I searched it on google but did not find appropriate solution.
Thankx in advance.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
maulik patelPosted Jun 8, 2015, 2:44 AM
look into below code where you find real way to use abstraction.
{
abstract class DB
{
public abstract void Connect();
public string DBIpAddress()
{
return “10.10.0.1”;
}
}
Class Sqlserver: DB
{
public override void Connect ()
{
Console.write(“This method will connect SQL server”);
}
}
Class Oracle : DB
{
public override void Connect()
{
Console.write(“This method will connect Oracle Server”);
}
}
}