1 of 8

Run TIME POLYMORPHISM

2 of 8

MainClass

Stimulator

static void : veh_sound( )

Bike

void : sound( )

BMW

void : sound( )

java

void : sound( )

Pulsar

void : sound( )

3 of 8

MainClass

Stimulator

static void : veh_ride( )

Ola

void : Ride( )

Car

void : Ride( )

Auto

void : Ride( )

Bike

void : Ride( )

4 of 8

MainClass

Stimulator

static void : taste_tea( )

Tea

void : taste( )

Black_tea

void : taste( )

Lemon_tea

void : taste( )

Green_tea

void : taste( )

5 of 8

MainClass

Booking

static void : movies( )

BookMyShow

void : movie( )

Hollywood

void : movie( )

Bollywood

void : movie( )

Sandalwood

void : movie( )

6 of 8

MainClass

Orders

static void : ordered( )

Zomato

void : order( )

Hotel3

void : order( )

Hotel1

void : order( )

Hotel2

void : order( )

7 of 8

MainClass

Booking

static void : tickets( )

redbus

void : ticket( )

Airavata

void : ticket( )

VRL

void : ticket( )

Janata

void : ticket( )

8 of 8

Thank You