Write a statement to create an object 'Keyboard' of the class 'Computer'.

Short Answer
Views 24

Answer:

<span class="pln">
</span><span class="typ">Computer</span><span class="pln"> </span><span class="typ">Keyboard</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> </span><span class="typ">Computer</span><span class="pun">();</span>

Related Articles:

This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.

Join Our telegram group to ask Questions

Click below button to join our groups.