ABC inheriting from ABC

Discussion in 'C++' started by vsgdp, Sep 24, 2005.

  1. vsgdp

    vsgdp Guest

    Can you do this:

    class A // abstract
    {
    public:
    virtual void f() = 0;
    virtual void g() = 0;
    virtual void h() = 0;
    };

    class B : public A // still abstract, but implemented some of the methods
    {
    public:
    virtual void f() = 0;
    virtual void g() {...};
    virtual void h() {...};
    };

    class C : public B
    {
    public:
    void f() { ... }
    };
     
    vsgdp, Sep 24, 2005
    #1
    1. Advertising

  2. vsgdp

    vsgdp Guest

    nevermind, the problem was something else.
     
    vsgdp, Sep 24, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jiong Feng
    Replies:
    0
    Views:
    846
    Jiong Feng
    Nov 19, 2003
  2. Colin Peters

    Special character to &abc equivalents

    Colin Peters, May 7, 2005, in forum: ASP .Net
    Replies:
    8
    Views:
    2,304
    =?Utf-8?B?UGF1bCBQYXJraW5zb24=?=
    May 9, 2005
  3. Bruce Sam
    Replies:
    15
    Views:
    7,935
    John C. Bollinger
    Nov 19, 2004
  4. Gunter Henriksen

    x.abc vs x['abc']

    Gunter Henriksen, May 13, 2009, in forum: Python
    Replies:
    1
    Views:
    357
    alex23
    May 15, 2009
  5. Replies:
    4
    Views:
    154
Loading...

Share This Page