aspose file tools
The moose likes Beginning Java and the fly likes core java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "core java" Watch "core java" New topic

core java

baban kakde

Joined: Jul 13, 2004
Posts: 2
what are different ways to hide variables in java ?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 62279

Nothing to do with JSP, so I'm moving this along to the Java in General(beginner) forum.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Welcome to JavaRanch, baban kakde!

Concerning variable hiding in Java, I suggest taking a look at the following sections of the Java Language Specification, Second Edition:
  • Example: Hiding of Class Variables
  • Example: Hiding of Instance Variables
  • 8.4.6 Inheritance, Overriding, and Hiding
  • Example: Overloading, Overriding, and Hiding
  • Example: Invocation of Hidden Class Methods
  • Example: Invocation of Hidden Class Methods

  • [How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
    Kris Adams

    Joined: Jul 02, 2004
    Posts: 17
    Hey Baban
    good start. Thinking in java by bruce eckel has thorough explanation with example code snippets. I think it would give you good understanding of the concepts.

    I agree. Here's the link:
    subject: core java