[3983] in java-interest

home help back first fref pref prev next nref lref last post

const

daemon@ATHENA.MIT.EDU (R.Volkmann)
Wed Dec 6 18:57:59 1995

Date: Wed, 6 Dec 95 13:41:21 -0600
From: "R.Volkmann" <m224873@ws1768.mdc.com>
To: java-interest@java.Eng.Sun.COM
Reply-To: "R. Mark Volkmann"<m224873@svmstr01.mdc.com>

As far as I can see the C++ "const" keyword is not present in Java.
In Java, how can you write an accessor function for a class data member
that returns the data member object but doesn't allow callers to modify it?
Was this deemed to be an unimportant feature of C++?

|------------------------------------------------------------|
| R. Mark Volkmann - Principal Specialist Programmer/Analyst |
| McDonnell Douglas Aerospace, St. Louis, Missouri, USA      |
| email m224873@svmstr01.mdc.com, voice (314)232-0498        |
|------------------------------------------------------------|
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post