Subject: Doing ch7 would u help me out?
Posted By: mara Post Date: 11/14/2003 5:42:16 AM
in correct path Book.java exists
but when i compile
i get this error.
i don;t know what is wrong
to me code seems to be correct.
plz help me out

com\wrox\library\ChildrenBook.java:3: cannot resolve symbol
symbol  : class Book
location: class com.wrox.library.ChildrenBook
public class ChildrenBook extends Book {
                                  ^
1 error

### fro this line: original TechBook.java code####
package com.wrox.library;

public class TechBook extends Book {

    private String skillLevel;

    private String getSkillLevel() {
        return skillLevel;
    }
    public void setSkillLevel(String s) {
        skillLevel = s;
    }
    public TechBook(){
        super();
    }
    public TechBook(String title) {
        super(title);
    }
}

Reply By: ipatchu Reply Date: 11/18/2003 8:37:18 PM

Hi, Mara.

I did try it before and seems that it works for me... Let me check it out this afternoon and I will get back to you...
Fyi: You may want to try to compile all those java class concurrently - using syntax javac *.java
Thanks!


quote:
Originally posted by mara

in correct path Book.java exists
but when i compile
i get this error.
i don;t know what is wrong
to me code seems to be correct.
plz help me out

com\wrox\library\ChildrenBook.java:3: cannot resolve symbol
symbol  : class Book
location: class com.wrox.library.ChildrenBook
public class ChildrenBook extends Book {
                                  ^
1 error

### fro this line: original TechBook.java code####
package com.wrox.library;

public class TechBook extends Book {

    private String skillLevel;

    private String getSkillLevel() {
        return skillLevel;
    }
    public void setSkillLevel(String s) {
        skillLevel = s;
    }
    public TechBook(){
        super();
    }
    public TechBook(String title) {
        super(title);
    }
}

 




Go to topic 6642

Return to index page 1002
Return to index page 1001
Return to index page 1000
Return to index page 999
Return to index page 998
Return to index page 997
Return to index page 996
Return to index page 995
Return to index page 994
Return to index page 993