Results 1 to 2 of 2
  1. #1
    Vorpike is offline Member
    Join Date
    Jun 2013
    Rep Power

    Question What is this called?

    What is it called when I make a new public <name here>, with params, and then use another java file to make a new variable out of it? And how I edit a param within it? E.g:
    public Card (int newRank, int newSuit), and then I use Card card = new Card (1, 2)

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: What is this called?

    I suggest you go through this Lesson: Classes and Objects (The Java™ Tutorials > Learning the Java Language) where you will find all this and more explained.

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. update() gets never called
    By flok in forum AWT / Swing
    Replies: 8
    Last Post: 10-19-2009, 05:45 PM
  2. My constructor not called
    By rdtindsm in forum New To Java
    Replies: 2
    Last Post: 09-20-2009, 02:38 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