Prachi K.

asked • 02/07/21

Inheritance in java

There were Pandavs and Kauravs. Arjun and Bheem were Pandavs. Duryodhan was a

Kaurav. Pandavs were characterized by their skills of fighting (fight ( )), obedience (obey

( )), and kindness (kind ( )). Though Bheem was little less kind but equally obedient as

Arjun. Kauravs were notorious for disobeying and cruelty. But Kauravs were fighters.

Kauravs were 100 in numbers, but one of them ‘Vikarn’ was a noble man- a good

fighter, kind and obedient. If you dive a little more in the history, you will come to know

that Pandavs and Kauravs were actually Bharatvanshi. And all bharatvanshis had been

fighters.

You are required to create a design first on paper and then write implementation on

your machine. Make abstract classes and concrete classes. Decide which methods

should be made abstract or non-abstract.

1 Expert Answer

By:

Patrick B. answered • 02/07/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Prachi K.

But this code doesn't gives any output
Report

02/08/21

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.