Home » JAVA Programming » Inheritance » Question
  1. Which of these is correct way of inheriting class N by class M?
    1. class M extends class N {}
    2. class M + class N {}
    3. class M inherits class N {}
    4. class M extends N{}
    5. None of these
Correct Option: D

class M extends N{}



Your comments will be displayed only after manual approval.