name conventions for pure ABCs

Discussion in 'C++' started by gelbeiche, Apr 28, 2005.

  1. gelbeiche

    gelbeiche Guest

    I'm curious if other programmer use special
    name conventions for interface classes in
    their projects.
    In a line like the following

    class A : public XXX_IF, public YYY_IF {

    I can see that multiple inheritance is on
    the agenda but at the same time I see:
    Ok, class A only implements the interfaces.

    I think the line

    class A : public XXX, public YYY {

    would be not so clear.
     
    gelbeiche, Apr 28, 2005
    #1
    1. Advertising

  2. gelbeiche wrote:
    > I'm curious if other programmer use special
    > name conventions for interface classes in
    > their projects.
    > In a line like the following
    >
    > class A : public XXX_IF, public YYY_IF {
    >
    > I can see that multiple inheritance is on
    > the agenda but at the same time I see:
    > Ok, class A only implements the interfaces.
    >
    > I think the line
    >
    > class A : public XXX, public YYY {
    >
    > would be not so clear.


    We don't use special conventions. We use comments.

    // merging two abstract classes into another
    class A : public XXX, public YYY {
    ...

    And, of course, we don't have names like 'A' or 'XXX' or 'YYY'...

    V
     
    Victor Bazarov, Apr 28, 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. Todd Aspeotis
    Replies:
    3
    Views:
    502
    Kanenas
    May 30, 2005
  2. Steven T. Hatton

    Polymorphism, iterators and ABCs?

    Steven T. Hatton, Aug 7, 2005, in forum: C++
    Replies:
    5
    Views:
    382
    Axter
    Sep 2, 2005
  3. Mark P

    Interfaces without ABCs?

    Mark P, Sep 13, 2005, in forum: C++
    Replies:
    6
    Views:
    352
    Alf P. Steinbach
    Sep 13, 2005
  4. =?iso-8859-1?q?Ernesto_Basc=F3n?=

    Opaque pointers, templates and ABCs

    =?iso-8859-1?q?Ernesto_Basc=F3n?=, Oct 25, 2006, in forum: C++
    Replies:
    3
    Views:
    406
    Roland Pibinger
    Oct 25, 2006
  5. Replies:
    4
    Views:
    825
    Ben C
    Mar 29, 2008
Loading...

Share This Page