Monday, 9 January 2017

LinkedIn is a social network for professionals. Here is a sample LinkedIn profile: http://www.linkedin.com/in/gauthampai Come up with the class design for the entities and relationship between these entities in the profile. In other words, just list down the classes, the fields in the class and the functions or methods in each class along with the return values of each method.

class Name{
 String First_Name;
 String Middle_Name;
 String Last_Name;
}

class DOB{
 int date();   // dd/mm/yy format
 int month;
 int year;
 }

class Skill_Sets{
 string skils;
 }
Class Id{
 string User_Name;
 }
class Password{
 int Pass_Word;
}
class Phonenumber{
 int land_number;
 int mobile_number;
}
class Projects{
 string project_Name;
 }
class Groups{
 string nameofGroups;
 string nameogMembers;

 }
class Petents{
 string project_Names;
 string project_duration;
 string team_members;
 string contents;
 }
class Interest{
 string interest;
 }
class Languages{
 string language_Names;
 }
 class  Photo{
  int size;
  }

class Experience{
 String company_Name;
 string post;
 }

class EducationQualification{
 string school_name;
 String university_name;
 String degree_name;
}
class LinkedIn {
public static void main(String[] args) {
EducationQualification education1=new EducationQualification();
ArrayList<EducationQualification> equal = new ArrayList<EducationQualification>();
equal.add(education1);
                Experience ex=new Experience();
                ArrayList<Experience> exp = new ArrayList<Experience>();
                exp.add(ex);
}
}

No comments:

Post a Comment