Click to See Complete Forum and Search --> : Confusing


michboy
07-24-2001, 09:24 PM
I just read this in a C++ book:

Templates and inheritance relate in several ways:

A class template can be derived from a template class
A class template can be derived from a non-template class
A template class can be derived from a class template
A non-template class can be derived from a class template

Dontcha love it? :D

jjjj
07-26-2001, 03:25 AM
Huh??? I didnt follow that.

kmj
07-26-2001, 10:44 AM
what is a class template exactly?

YaRness
07-26-2001, 10:47 AM
i love (hate) obfuscated pointers and such in c++ more.


block *(*g())[10];
int *(*buf[10])();

(Navigating C++ and Object Oriented Design, Anderson & Anderson, Prentice Hall PTR)

Stuka
07-26-2001, 11:53 AM
Yar-
Whoever actually wrote those lines should be dragged out, beaten, and perhaps shot. That's the kind of crap that will make C++ look as Perl! :D */me dodges arrows from Perl nuts*

TheLinuxDuck
07-26-2001, 02:12 PM
Originally posted by Stuka:
<STRONG> That's the kind of crap that will make C++ look as Perl! :D */me dodges arrows from Perl nuts*</STRONG>

HEY!!!??!?!

::sniff:: ::sniff::

You know what? I'm not happy about that.

(^=