B
Bernhard Enders
I'm quite new to Java and the OOP world, so may be it's a nonsense
question, but here it is: I want to code a very simple class that has a
few methods for manipulating a unique property of type String. In other
words, and without the OOP jargon, I just want a variable of type
String and some functions to work with it, but I don't want to use the
dot operator to simply get the contents of the string. This is similar
to the standard String class, where you have the privates value, count,
offset, etc.. properties and you don't need to say (for String str)
str.value = "abc"; How can I do that? Thanks in advance,
Bernhard Enders.
question, but here it is: I want to code a very simple class that has a
few methods for manipulating a unique property of type String. In other
words, and without the OOP jargon, I just want a variable of type
String and some functions to work with it, but I don't want to use the
dot operator to simply get the contents of the string. This is similar
to the standard String class, where you have the privates value, count,
offset, etc.. properties and you don't need to say (for String str)
str.value = "abc"; How can I do that? Thanks in advance,
Bernhard Enders.