discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

objc++ test code


From: Rogelio M . Serrano Jr .
Subject: objc++ test code
Date: Sat, 22 Jan 2005 11:34:00 +0800

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi

Can anyone say if this is correct?

class myClass
{
     int var;
     int methoda();
};


@interface myobjcClass
{
     int myVar;
}
- -(int)hello
@end

@implementation myobjcClass
- -(int)hello
{
     return 1;
}
@end

myobjcClass * objcClass;

int
myClass::methoda()
{
     int var;

     return [myobjcClass hello];
}

- --
Blood is thicker then water... And much tastier
                             John Davidorff Pell
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using the GPG bundle for GNUMail

iD8DBQFB8cmoyihxuQOYt8wRAvdfAKCITtH8VuT61QAUOt9klWLdTbLgwQCff0R9
nN6J46zc9Y3gN/U2MKzHUx8=
=mTnN
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]