0
I am coding resume system and it should consist of 4 classes with 10 attributes and 5 methods. Can anyone help me with this,
public class ContactInfo{ public static void main(String[] args) { int phonenumber; String email; System.out.println("CONTACT INFORMATION"); System.out.println("09519623702"); System.out.println("jhamaicajucal09@gmail.com"); System.out.println(""); } } //Display Personal Data class PersonalData{ public static void main(String[] args){ System.out.println("PERSONAL DATA"); System.out.println("Name:Jhamaica Jucal"); System.out.println("Date of Birth:October 09,2001"); System.out.println("Nationality:Filipino"); System.out.println("Religion: Iglesia ni Cristo"); System.out.println(""); } }
2 odpowiedzi
0
Can you add educational backgorund?
0
/*
I think you need to revisit about what are variables, classes, and objects . and how to use them..
one example of using attributes, methods with a class is :
*/
class Education {
String degree, grade ;
int yearPass;
void setValues(String d, String g, int y)
{
degree=d;
grade=g;
yearPass=y;
}
String getValues()
{
return "Degree: "+degree+" Grade : "+grade+ " Pass out: " + yearPass;
}
/*
this will set 3 attribute values by a method setValues , and return all 3 values in a string farmat by calling getValues();
//through an object ,you can set and get values by methods , for any number of times* ..
*/