MCQs > IT & Programming > C# > What happens when the below code is executed? abstract class Shape { public abstract void draw(); }class Rectangle: Shape{  public override void draw();   //Some more member functions.....}class CCheck{ public static void Main() {    Shape objShape;  } }

C# MCQs

What happens when the below code is executed?

abstract class Shape

{

  public abstract void draw();

}

class Rectangle: Shape

{

  public override void draw();

  //Some more member functions.....

}

class CCheck

{

  public static void Main()

  {

    Shape objShape;

  }

}

Answer

Correct Answer: Defining the body of the draw() method in class Rectangle would let the class compile

Explanation:

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it