🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.learn.c-c++
Article #346

class definition

#346
From: Bruce Lai
Date: Tue, 30 Nov 1999 00:00
27 lines
1531 bytes
    Hello great programmers, I got a question here. Please take a look
at the code below.

    class derived : public base {
        public:
            derived()  :  base() {}  //What the hell does this line of
code do?
    }

I see this kind of declaration in an example of OWL programming and in
the case derived is TDrawApp and base is TApplication.

Well, something out of the content but I saw this in my C++ book and I
can't make clear of them:

    int *(*(*ifunct_ptr)(int))[5];
    float (*(*ffunct_ptr)(int,int))(float);
    typedef double (*(*(*dfunct_ptr)())[5])();
    (*(*funtion_ary_ptrs())[5])();
    int func() const;

Anyone can help me clarify them? I'd prefer a copy of reply to my email
box as well. THANKS!!
--
Bruce Lai
Email: arraylai@netvigator.com
ICQ: 13949789 (scrop)
Technical Details
Message-ID: <38436F07.55AD215F@netvigator.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f8d38,1c86b0ff88e63dee,start
X-Google-Attributes: gidf8d38,public
X-Google-Thread: 109fba,1c86b0ff88e63dee,start
X-Google-Attributes: gid109fba,public
X-Google-Thread: 114592,1c86b0ff88e63dee,start
X-Google-Attributes: gid114592,public
From: Bruce Lai <arraylai@netvigator.com>
Subject: class definition
Date: 1999/11/30
Message-ID: <38436F07.55AD215F@netvigator.com>
X-Deja-AN: 554779972
Content-Transfer-Encoding: 7bit
Organization: IMS Netvigator
X-Accept-Language: en,zh-CN,zh-TW,zh,ja
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: alt.comp.lang.learn.c-c++,comp.lang.c++,borland.public.cpp.language