delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/21/20:30:47

From: "BDozer" <parsec AT nat DOT bg>
Newsgroups: comp.os.msdos.djgpp
Subject: OO question
Date: Tue, 22 Sep 1998 00:59:45 +0300
Organization: Naturella Agency News Server
Lines: 28
Message-ID: <6u6i3t$mr1$1@equila.wfpa.acad.bg>
NNTP-Posting-Host: vnpool4.ntrl.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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(); (?)
////////////




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019