Results 1 to 2 of 2
  1. #1
    Shadow2000 is offline Member
    Join Date
    Jun 2010
    Posts
    1
    Rep Power
    0

    Default cant find sysmbol constructor

    Hey can i plz get some help here i keep getting the error useing this test here
    Java Code:
     testPig = new Pig("Test Breed");
    Last edited by Shadow2000; 06-01-2010 at 04:52 AM.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    You are calling the Pig constructor with a String parameter, but where does your Pig class have a constructor that takes a String? Answer: there isn't one. You'd best read up on constructors and methods in your text book if you don't understand why this is in error.

Similar Threads

  1. cannot find symbol constructor
    By daud in forum New To Java
    Replies: 9
    Last Post: 08-13-2009, 04:53 AM
  2. Replies: 9
    Last Post: 10-18-2008, 09:26 PM
  3. "Cannont find symbol Constructor" error
    By Welsh in forum New To Java
    Replies: 7
    Last Post: 01-25-2008, 01:12 AM
  4. Replies: 0
    Last Post: 12-19-2007, 10:10 AM
  5. Error: cannot find symbol constructor
    By zoe in forum New To Java
    Replies: 1
    Last Post: 07-24-2007, 09:24 PM

Posting Permissions

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