Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Doubts Over Base Class

  1. #1
    Junior Member
    Join Date
    Jul 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Doubts Over Base Class

    Hi I am presently doing an task for blackberry,and i have doubt over base class

    I have 2 classses namely -

    PageScreen-Which is a base class that contains a labelfield ,with some text in it.
    TestScreen -i am extending PageScreen here.So Based on Focus of the elements in this screen,i need to change the value of label in pageScreen.

    How can do it?

    How to access the variables of the base class?


    Regards

    Rakesh Shankar.P


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Doubts Over Base Class

    Make the variable protected, or provide a protected/public accessor method in the base class.

Similar Threads

  1. Base Conversion
    By Pingu in forum What's Wrong With My Code?
    Replies: 7
    Last Post: February 22nd, 2011, 03:15 PM
  2. Simple Data Base.
    By Reese in forum The Cafe
    Replies: 14
    Last Post: August 2nd, 2010, 02:23 PM
  3. How to place icon on a picture base on (x,y) axis
    By FaintSmile in forum Java Theory & Questions
    Replies: 1
    Last Post: July 13th, 2010, 07:27 AM
  4. Replies: 0
    Last Post: April 11th, 2010, 08:56 AM
  5. Urgent Doubts
    By shilpareddy553 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 27th, 2010, 02:26 AM