tag:blogger.com,1999:blog-17722541.post113162948482014701..comments2023-10-30T12:41:52.941+01:00Comments on don't code today what you can't debug tomorrow: Property in C++Ariya Hidayathttp://www.blogger.com/profile/03121582140059106015noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-17722541.post-1131689753244520202005-11-11T07:15:00.000+01:002005-11-11T07:15:00.000+01:00After reading the problem, the first thing came in...After reading the problem, the first thing came into my mind is that make min,max object. Then in the copy constructor of min,max class, just call a funtion pointer(stored as member var). the address of funtion pointer though needs to be intialized in constructor :)Vinay Khaitanhttps://www.blogger.com/profile/13355528891654166613noreply@blogger.comtag:blogger.com,1999:blog-17722541.post-1131641984875352512005-11-10T17:59:00.000+01:002005-11-10T17:59:00.000+01:00I personally like this for a getter :int posX = Bu...I personally like this for a getter :<BR/>int posX = Button1.getLeft(); <BR/><BR/>I think it's a nicer Getter because Left is better for an attribute name not a method ?? PS : And I adore camel style :-P<BR/><BR/>BTW, this post (Property in C++) should be a 1 credit subject in my semester (at my campus, 1 credit is for a laboratory-business) :-) Nice work, but, Object Pascal still Rocks in my Heart coz' i know nothing about C++. :=)marisihttps://www.blogger.com/profile/07123129732212128678noreply@blogger.com