name conventions for pure ABCs

G

gelbeiche

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

Victor Bazarov

gelbeiche said:
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top