Solved

Are signatures part of the standard in C++?

Posted on 2003-11-18
2
306 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
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…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

828 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