Solved

Are signatures part of the standard in C++?

Posted on 2003-11-18
2
307 Views
Last Modified: 2010-04-01
specifically here is alink to C++ signatures where i learned about them when looking for a common idea to the java interface keyword.

http://www.tac.dk/cgi-bin/info2www?(gcc.info)C%2B%2B%20Signatures

or you can get to it from
http://www.tac.dk/cgi-bin/info2www?(gcc.info)Index
and go down to C++ Signatures.

If you know that they are part of the standard and can show me somewhere that says it, i would really appreciate it! thanks!
0
Comment
Question by:Hokester
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 200 total points
ID: 9773369
No, they are not. But, the functionality actually is the same as a pure virtual base class (aka 'interface'). E.g.

     signature S
     {
       int foo ();
       int bar (int);
     };


is identical to

     struct S
     {
       virtual int foo () = 0;
       virtual int bar (int) = 0;
     };
0
 

Author Comment

by:Hokester
ID: 9790635
thanks for your help!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question