[Tutor] Doubt

Alan Gauld alan.gauld at yahoo.co.uk
Tue Feb 26 18:06:12 EST 2019


On 26/02/2019 18:36, Maninath sahoo wrote:
> is it possible reverse inheritance?
> mean child class to parent class

I have no idea what you mean by that. How would it work?
Can you give an example of the kind of thing you want to do?

For example Circles and Rectangles are kinds of Shape
so their classes inherit from class Shape. How would you reverse
the inheritance in that scenario? What would you do with it?

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list