Question from the C++ test

Compile time error as object of class Circle cannot be created

Hard

Consider the following code:

class Shape
{
        	public:
        	virtual void perimeter() = 0;
        	void print()
        	{
   	             	std::cout<<"Printing from Shape"<<std::endl;
        	}
};
class Circle : public Shape
{
        	public:
        	void print()
        	{
	    	std::cout<<"Printing from Circle"<<std::endl; 
        	}
};

What would be the output of the following?

Circle object;
Object.print(); 	
Author: Abha AgrawaStatus: PublishedQuestion passed 417 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!