Question on shapes

Alain De Vos devosalain at ymail.com
Tue May 17 00:10:55 UTC 2022


Let's say a shape is ,a circle with a radius ,or a square with a 
rectangular size.
I want to pass shapes to functions, eg to draw them on the screen,
draw(myshape) or myshape.draw();
But how do i implement best shapes ?


More information about the Digitalmars-d-learn mailing list