Question
.Consider the following Java code: class Shape
{   void draw() {     System.out.println("Drawing a generic shape");   } } class Circle extends Shape {   @Override   void draw() {     System.out.println("Drawing a circle");   } } class Rectangle extends Shape {   @Override   void draw() {     System.out.println("Drawing a rectangle");   } } public class TestPolymorphism {   public static void main(String[] args) {     Shape s1 = new Circle();     Shape s2 = new Rectangle();     Shape s3 = new Shape();     s1.draw();     s2.draw();     s3.draw();   } } What will be the output of this code?Solution
The correct answer is A
Which of the following given below are included in the Digital Payment Index parameters?
- Payment enablers
- Payme...
According to the Census of India 2011, most people had out-migrated from _____ to other states in India.`Â
Five rivers from Punjab (India) enter the river _____ at Mithankot in Pakistan.
In which year was the Konkan Railway constructed?
With which dancing form is the noted classical dancer Shovana Narayan associated?
Consider the following statements in reference to the Gogona musical instrument of India
1. It is the most simple and smallest Indian rural mu...
According to the NIRF Rankings, which is ranked as the top law university in India?
Graphite and diamonds are basically made up of atoms of
Mango showers are:
Identify the incorrect initiative that was launched by the Government of India to reduce NPA?