Category : C Source Code
Archive   : CPPOOPS.ZIP
Filename : OBJECT.C

 
Output of file : OBJECT.C contained in archive : CPPOOPS.ZIP
/* Test class Object

THIS SOFTWARE FITS THE DESCRIPTION IN THE U.S. COPYRIGHT ACT OF A
"UNITED STATES GOVERNMENT WORK". IT WAS WRITTEN AS A PART OF THE
AUTHOR'S OFFICIAL DUTIES AS A GOVERNMENT EMPLOYEE. THIS MEANS IT
CANNOT BE COPYRIGHTED. THIS SOFTWARE IS FREELY AVAILABLE TO THE
PUBLIC FOR USE WITHOUT A COPYRIGHT NOTICE, AND THERE ARE NO
RESTRICTIONS ON ITS USE, NOW OR SUBSEQUENTLY.

Author:
K. E. Gorlen
Bg. 12A, Rm. 2017
Computer Systems Laboratory
Division of Computer Research and Technology
National Institutes of Health
Bethesda, Maryland 20892
Phone: (301) 496-5363
uucp: uunet!ncifcrf.gov!nih-csl!keith
Internet: keith%[email protected]

Function:

Modification History:

$Log: object.c,v $
* Revision 1.1 88/01/17 22:24:51 keith
* Initial revision
*

*/
static char rcsid[] = "$Header: object.c,v 1.1 88/01/17 22:24:51 keith Exp $";

#include "Point.h"
#include "Rectangle.h"

main()
{
cout << "\nTest class Object\n";
Point A(1,2);
Object* C = A.copy();
cout << "C is an instance of class " << C->className() << "\n";
cout << "C = " << *C << "\n";
cout << "C->isKindOf(class_Object): " << C->isKindOf(class_Object) << "\n";
cout << "C->isKindOf(class_Rectangle): " << C->isKindOf(class_Rectangle) << "\n";
}


  3 Responses to “Category : C Source Code
Archive   : CPPOOPS.ZIP
Filename : OBJECT.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/