question archive Develop a super class "Bird" that takes name of bird as an argument to default constructor
Subject:Electrical EngineeringPrice: 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 child classes to implement "voice" method if they want to instantiate the object. The child classes (parrot and sparrow) should return the relevant opinion through "voice" method.