This is ANDGate.m in view mode; [Download] [Up]
//
// ANDGate
//
// An Objective-C class for digital logic simulation which
// simulates the behavior of an n-input, m-bit AND gate.
//
#import "ANDGate.h"
@implementation ANDGate
- (bit)op:(bit)a :(bit)b
{
    return (a && b);					// AND bits.
}
@end
//
// End of file.
//These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.