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

    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
    Northern Virginia, United States
    Rep Power

    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.

    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on 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, 01:39 PM
  2. Attributes vs Parameters
    By java4amanda in forum Java Servlet
    Replies: 1
    Last Post: 01-18-2012, 12:46 PM
  3. Replies: 4
    Last Post: 10-12-2011, 12:48 AM
  4. Parsing XML attributes
    By javanewbie2020 in forum XML
    Replies: 1
    Last Post: 11-02-2010, 01:39 PM
  5. Classes with object attributes
    By RRasco in forum New To Java
    Replies: 5
    Last Post: 11-25-2008, 01: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