Computer Science, asked by jagjit0, 6 months ago

program In java to implement the various techniques of inheritance using switch statement​

Answers

Answered by dewanganpatwari
2

Answer:

.

Explanation:

Java switch Statement

Java switch Statement

In this tutorial, you will learn to use the switch statement in Java to control the flow of your program’s execution with the help of examples.

The switch statement allows us to execute a block of code among many alternatives.

The syntax of the switch statement in Java is:

switch (expression) { case value1: // code to be executed if // expression is equal to value1 break; case value2: // code to be executed if // expression is equal to value2 break; ... ... default: // default statements }

Similar questions