Abstract method dimension,area
define an abstra class funiture with abstrac method dimension,area. import this class into two classes table and chair.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sushil Gupta37 reputationPosted Dec 12, 2014, 6:24 AM EST
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;
}