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. Advertisements

  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. Advertisements

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:
    755
    Kanenas
    May 30, 2005
  2. Steven T. Hatton

    Polymorphism, iterators and ABCs?

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

    Interfaces without ABCs?

    Mark P, Sep 13, 2005, in forum: C++
    Replies:
    6
    Views:
    435
    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:
    499
    Roland Pibinger
    Oct 25, 2006
  5. Paulo Matos

    Interfaces and ABCs

    Paulo Matos, Dec 2, 2006, in forum: C++
    Replies:
    4
    Views:
    418
    kwikius
    Dec 3, 2006
  6. Bart Simpson
    Replies:
    4
    Views:
    437
    James Kanze
    Jun 3, 2007
  7. Replies:
    4
    Views:
    1,022
    Ben C
    Mar 29, 2008
  8. Boris Borcic

    ABCs -> infix syntax for isinstance() ?

    Boris Borcic, Oct 3, 2008, in forum: Python
    Replies:
    7
    Views:
    430
    Boris Borcic
    Oct 8, 2008
Loading...