I used to program in Vb 6 before I decided to migrate to Java a year ago.
I wrote a Student Information program in Vb 6. I now wanted to write the same program in Java.
I designed two classes: Person and COCINClasses.The Person class ran perfectly.
Below is the COCINStudent class that says it cannot see my constructor COCINStudent:
public class COCINStudent extends Person
/**additional attributes of a student
*in addition to those inherited from
private String admissionNo;
private String nameOfGuardian;
private Date admissionDate;
private String previousSchoolAttended;
private String set;
private String studentType;
private Date dateOfLeaving;
private String classPassed;
private String notes;
private String photo;
/* another constructor. You must first of all list all the
*instance variable in the constructor heading
public COCINStudent(String nameIn, String genderIn, String eMailIn,
String lGCIn, String stateIn, String phoneNumberIn,
String religionIn, String contactAddress1In,
String contactAddress2In,String admissionNoIn, String nameOfGuardianIn,
Date admissionDateIn, String previousSchoolAttendedIn,
String setIn, String studentTypeIn,Date dateOfLeavingIn,
String classPassedIn, String notesIn, String photoIn,
int year, int month, int day)
super(nameIn, genderIn, eMailIn, lGCIn, stateIn,
phoneNumberIn, religionIn, contactAddress1In,
contactAddress2In, year, month, day);
COCINStudent coStudent = new COCINStudent("Dan Abutu",
"08059465371","Muslim","St Peter's Compound","Box 305, Ogori",
1948,8,19,"GTC 01","Pelemo Joel",1962, 1,17,
"GSS Okene","1968","Form", 1970,11, 28,"Year Five",
"He was Head Student","None");
System.out.println("List of Students:-");
My problem is with the COCINStudent class. Without the main method, it compiled fine. When I added the main class, compiled and ran the program, it complained that it cannot see the class COCINStudent! Honestly I have tried to fish out why the compiler is saying so.
Please, let a good samaritan help me out. Without the solution I can't move ahead with Java.
Thank you for your help. I wait eagerly for your reply.