Computer Science, asked by arohi4, 1 year ago

override means with example of real time entity?

Answers

Answered by madanstudio02
1
Consider two classes Bird and Kiwi. .. Kiwi is a type of bird. So kiwi inherits/extends Bird class. If the Bird class has a function named Fly(), since Kiwi is a flightless bird, may be we need to override the Fly() method for the Kiwi class.
Similar questions