From: "BDozer" Newsgroups: comp.os.msdos.djgpp Subject: OO question Date: Tue, 22 Sep 1998 00:47:35 +0300 Organization: Naturella Agency News Server Lines: 26 Message-ID: <6u6hje$mj7$1@equila.wfpa.acad.bg> NNTP-Posting-Host: vnpool4.ntrl.net Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Is this possible? for example here's a class: //////////// class CLS { public: int x,y; ..... void OnMouseClick(void); }; //////////// Can I assign other function to a method? Something like: //////////// void MyFunc() { ..... } CLS object; object.OnMouseClick = MyFunc(); (?) ////////////