Anish Tho

Greenhorn
+ Follow
since Dec 02, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Anish Tho

You must not import classes in the same package as the current class. If you are using the default nameless package, you must not import any other classes in the default package.
[ref:http://mindprod.com/jgloss/import.html]

if both Person and sean classes are in the same directory, you can use "Person" class in "sean" without importing it.
Also do make the constructor in Person class public, if you want to access it from outside.


public class sean{
Person p = new Person("hi",1);
}
[ December 03, 2004: Message edited by: Anish Tho ]
19 years ago