Method chaining + inheritance don't play well together?

后端 未结 15 748
北荒
北荒 2020-12-08 22:20

Consider:

// member data omitted for brevity

// assume that \"setAngle\" needs to be implemented separately
// in Label and Image, and that Button does need         


        
15条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-08 23:05

    Really, method chaining is a bad idea due to poor exception safety. Do you really need it?

提交回复
热议问题