Package tasks.task2.code
Class Student
java.lang.Object
tasks.task2.code.Student
- All Implemented Interfaces:
Comparable<Student>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate final Stringprivate final longprivate byte -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
rollNumber
private byte rollNumber -
name
-
parentContactNumber
private final long parentContactNumber -
marks
private double marks
-
-
Constructor Details
-
Student
public Student() -
Student
-
-
Method Details
-
getRollNumber
public byte getRollNumber() -
setRollNumber
public void setRollNumber(byte rollNumber) -
getName
-
getParentContactNumber
public long getParentContactNumber() -
getMarks
public double getMarks() -
setMarks
public void setMarks(double marks) -
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<Student>
-