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

    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 03:52 AM.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


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