main
memclass memObject = new memclass();//this line wont work it has red lines under memclass
error message
constructor memclass in class home33.memclass cannot be applied to given types;
required: java.lang.String,java.lang.String,java.lang.String ,java.lang.String
found: no arguments
reason: actual and formal argument lists differ in length
----
(Alt-Enter shows hints)
can anyone help please thanks the error is on the first line of code i included the class i am trying to call incase the error is there i have included netbeans error messagememclass /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package home33; /** * * @author ork */ public class memclass { private String firstName; private String SecondName; private String joinDate; private String dob; public memclass(String firstName, String SecondNmae, String joinDate, String dob) { this.firstName = firstName; this.SecondName = SecondNmae; this.joinDate = joinDate; this.dob = dob; } public String getSecondNmae() { return SecondName; } public void setSecondNmae(String SecondNmae) { this.SecondName = SecondNmae; } public String getDob() { return dob; } public void setDob(String dob) { this.dob = dob; } public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getJoinDate() { return joinDate; } public void setJoinDate(String joinDate) { this.joinDate = joinDate; } }