Path: utzoo!utgpu!watserv1!watmath!att!att!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!rpi!bu.edu!transfer!lectroid!charis!mjy From: mjy@charis.UUCP (Michael J. Young) Newsgroups: comp.lang.c++ Subject: Re: C++, Object Design Methodologies and Software Engineering Message-ID: <1990Nov4.134319.10936@charis.UUCP> Date: 4 Nov 90 13:43:19 GMT References: <24872@uflorida.cis.ufl.EDU> <2390@lupine.NCD.COM> Reply-To: mjy@charis.UUCP (Michael J. Young) Organization: none Lines: 20 In article <2390@lupine.NCD.COM> rfg@NCD.COM (Ron Guilmette) writes: >Specifically, I think that the kind of thing that you are perhaps >looking for might be a header file that looks kinda like this: > > class car; > > car::car (int cost); > car::~car (); > heading car::turn (direction d); > next_date car::change_oil (station s); > >In other words, a sort of *abbreviated* description of the interface to >a class which is provided to some user of the class. That might be fine, as long as you don't ever try to use class car. But what happens when you try to create an instance of car, or use it as a member of another class? The compiler has no way of determining sizeof(car). -- Mike Young UUCP: lectroid.sw.stratus.com!charis!mjy Tel: +1 508 568 1572