question archive Develop a super class "Bird" that takes name of bird as an argument to default constructor
Subject:Computer SciencePrice: Bought3
Develop a super class "Bird" that takes name of bird as an argument to default constructor. The super class should be implemented in such a way that it becomes mandatory for all to child classes to implement "voice" method if they want to instantiate a object. The child classes (parrot and sparrow) should return the relevant opinion through "voice"method