Results 1 to 2 of 2
  1. #1
    bobbytown is offline Member
    Join Date
    Jan 2014
    Posts
    5
    Rep Power
    0

    Default Attributes in several classes

    Hello, I would like to use the attribute A of my class Selecter1, in my main class Resizing. How ? Thanks

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    United States
    Posts
    2,924
    Rep Power
    4

    Default Re: Attributes in several classes

    You didn't provide much info to go on. But it sounds like that you would need an instance of your class Selecter1 in your Resizing class. Then you could simply create a get method in your Selecter1 class that returns the desired attribute.

    Regards,
    Jim
    The Java™ Tutorial | SSCCE | Java Naming Conventions
    Poor planning our your part does not constitute an emergency on my part.

Similar Threads

  1. class attributes vs instance attributes in web apps
    By rdangelo in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 06-26-2012, 12:39 PM
  2. Attributes vs Parameters
    By java4amanda in forum Java Servlet
    Replies: 1
    Last Post: 01-18-2012, 11:46 AM
  3. Replies: 4
    Last Post: 10-11-2011, 11:48 PM
  4. Parsing XML attributes
    By javanewbie2020 in forum XML
    Replies: 1
    Last Post: 11-02-2010, 12:39 PM
  5. Classes with object attributes
    By RRasco in forum New To Java
    Replies: 5
    Last Post: 11-25-2008, 12:07 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •