inheritance

Hi. I need help with inheritance. Wen i click complie i get this error message ("cannot find symbol - constructor Camera(int)").

This is the code for the superclass:

public class Camera

{

private int id;

// added new attribute called description

private String description;

private int borrower;

// declare other attributes here

public Camera(int newId, String newDescription, int newBorrower)

{

id = newId;

description = newDescription;

borrower = newBorrower;

This is the code for the subclass:

public class DigitalCamera extends Camera

{

// declare extra attributes here

private int memorySize;

private boolean hasMainsAdapter;

public DigitalCamera(int newId, int newMemorySize, boolean newHasMainsAdapter)

{

super(newId);

memorySize = newMemorySize;

hasMainsAdapter = newHasMainsAdapter;

I am new to java, so i could use sum help. Many Thanks.

[1031 byte] By [abdul.princea] at [2007-10-2 20:20:47]
# 1
The only constructor in Camera takes two arguments. In the constructor of DigitalCamer, you are calling super with only one argument.
BaltimoreJohna at 2007-7-13 23:03:11 > top of Java-index,Java Essentials,New To Java...
# 2
> The only constructor in Camera takes two arguments.You're giving Baltimore a bad image.There are three parameters.
ValentineSmitha at 2007-7-13 23:03:11 > top of Java-index,Java Essentials,New To Java...
# 3
Oops, I guess I just looked that it took more than one. Please don't construe anything I say or do here as a reflection on the great city of Baltimore or state of Maryland (I was educated elsewhere).
BaltimoreJohna at 2007-7-13 23:03:11 > top of Java-index,Java Essentials,New To Java...
# 4
> I was educated elsewhereYou mean there's knowledge other than "Fear the Turtle"?
ValentineSmitha at 2007-7-13 23:03:11 > top of Java-index,Java Essentials,New To Java...