From: Tianmiao Hu Family Newsgroups: comp.os.msdos.djgpp Subject: A question about C++ language! Date: Sat, 02 Aug 1997 16:59:06 -0500 Organization: Tulane University Lines: 21 Message-ID: <33E3ADA9.D59DD86C@mailhost.tcs.tulane.edu> NNTP-Posting-Host: dialup113.tcs.tulane.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hello, What does "double g() const;" line in the following code mean? Is it different from the next line "double g();"? This is an example from a book called "Scientific and Engineering C++: An Introduction with Advanced Techniques and Examples". I have tried to compile it under DJGPP and it passed. I don't understand why "const" can appear after "g()"? class B { double g() const; double g(); double g(int); void h(); }; Thank you for your great help! Tianmiao Hu