Question: Using Java Create a class called Student. This class will not be tied to the Database, yet. The Student class should have the same properties

Using Java

Create a class called Student. This class will not be tied to the Database, yet. The Student class should have the same properties as the Database table: SID, FirstName, LastName, etc. Include all the set and get functions as needed. Include 2 constructors, an empty constructor, and one that takes all properties. Include a display() method that prints out all properties. Use a main to instantiate and test out this Student class. (Hint: No database calls in this class, yet.)

Testing Code in Main() method

Student s1 = new Student(4,Frank, Jones, 123 Main, Atlanta, GA, 30133, fj@yahoo.com, 3.2);

s1.display();

Students
ID FirstName LastName Street City State Zip EMail GPA
1 Larry Jones 200 Larue St. Denver CO 89721 larry@yahoo.com 3.2
2 Debbie Gibson 101 Cambell St. Chicago IL 61721 debra@hotmail.com 2.9
3 James Henry 9019 Par Ln. Atlanta GA 30981 jh@yahoo.com 3.5
4 Tony Danza 100 Main St San Diego CA 90890 tony@yahoo.com 3.4
5 Marie Baker 313 Mockingbid Lane Seattle WA 98711 mbaker@hotmail.com 2.2
6 Mary Weathers 10 King St Denver CO 65334 maryw@bellsouth.net 2.1
7 Biily Wagner 777 Blake St Chicago IL 61900 billyw@comcast.net 2.9
8 Tim Allen 200 South St Detroit MI 54123
9 Gary Stevens 112 Plymouth Ln Ann Arbor MI 54123 garys@hotmail.com 3.2
10 Betsy Cook 101 Freeport St Atlanta GA 31010 bcook@yahoo.com 3.3
11 Susan Jones 200 West Ave Marietta GA 30060 sujones@hotmail.com 2.2
12 Frank Peters 3845 Beckford Ave San Diego CA 95123 frankperters@comcast.net 3.9
13 Terri March 9516 Hale Dr St Louis MO 63321 tmarch@bellsouth.net 3.1
14 Jack Hines 2222 Morningside Dr Marietta GA 30090 jhines@yahoo.com 2.8
15 Phil Gecko 45 East St Montgomery AL 41231 pgecko@yahoo.com 2.7
16 Tony Peters 200 Central Ave Miami FL 75213

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!