Python-object-oriented-programming Define three classes, iLine, iCurved, iStraight with given conditions