abstract method dimension,area
define an abstra class funiture with abstrac method dimension,area. import this class into two classes table and chair.
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.
Sushil GuptaPosted Dec 12, 2014, 11:24 AM
abstract class furniture{
public abstract void dimention(int length,int width);
public abstract int area();
}
class table : furniture
{
public override void dimention(int length, int width)
{
}
public override int area()
{
return 0;
}
}
class chair : furniture
{
public override void dimention(int length, int width)
}{
}
public override int area()
{
return 0;
}