About | Buy Stuff | News | Products | Rants | Search | Security | Social
Home » Resources » Rants

OO Really Works

Week of June 19, 2002

Let those who claim OO cannot improve reuse forever hold their peace.

#include 'afxlose.h'

class CByte
{
private:
  BYTE byte;

public:
  BYTE value(void);
  BOOL setValue(BYTE);

  BYTE andValueWith(BYTE);
  BYTE orValueWith(BYTE);
  BYTE xorValueWith(BYTE);

  BYTE nandValue(void);
  BYTE notValue(void);

  BYTE getHiNibble(void);
  BYTE getLoNibble(void);

  BYTE getValueReversed(void);

  BYTE getValueLeftRotate(void);
  BYTE getValueRightRotate(void);

  BYTE getValueLeftShift(void);
  BYTE getValueRightShift(void);

  BYTE takeValueAndJumpOverMoon(BYTE);
};
About | Buy | News | Products | Rants | Search | Security
Copyright © Radsoft. All rights reserved.