Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!tut!funic!santra!santra!ahuttune From: ahuttune@niksula.hut.fi (Ari Juhani Huttunen) Newsgroups: comp.lang.c++ Subject: Virtual functions - pointers to tables? Message-ID: Date: 21 Aug 90 22:56:22 GMT Sender: news@santra.uucp (Cnews - USENET news system) Distribution: comp Organization: Helsinki University of Technology, Finland Lines: 20 Consider an example class: class X { public: virtual a(void) = 0; virtual b(void) = 0; }; Just how are these "virtual function tables" constructed? (By the compiler..) Are the ONE or TWO tables? And to come to the point of this article, are there ONE or TWO pointers to these tables? So, do my classes get cluttered with implicit pointers if I put many virtual functions in them? My guess is that there is just ONE pointer, but is it enough if you write MANY virtual functions? -- ___ ___ ___ ___ ___ ___ ___ ___ ___ __I I__I I__I I__I I__I I__I I__I I__I I__I I Thank you Ari Huttunen (ahuttune@niksula.hut.fi) I for not smoking! ____________________________________________I