Examlex

Solved

What Is Printed

question 26

Multiple Choice

What is printed?

public class Inherit
{

abstract class Figure
{
void display( )
{
System.out.println("Figure") ;
}
}

abstract class Rectangle extends Figure
{
}

class Box extends Rectangle
{
void display( )
{
System.out.println("Rectangle") ;
}
}

Inherit( )
{
Figure f = (Figure) new Box( ) ;
f.display( ) ;
Rectangle r = (Rectangle) f;
r.display( ) ;
}

public static void main(String[ ] args)
{
new Inherit( ) ;
}
}


Definitions:

Paraphilia

A condition characterized by abnormal sexual desires that involve extreme or atypical scenarios.

Sexually Aroused

The physical and psychological state of excitement and responsiveness to sexual stimuli, often characterized by increased heart rate, blood flow, and erection or lubrication.

Simultaneous

Occurring, conducted, or accomplished at the same time.

DSM-IV

The fourth edition of the Diagnostic and Statistical Manual of Mental Disorders, a handbook used by healthcare professionals in the United States and much of the world as the authoritative guide to the diagnosis of mental disorders.

Related Questions