Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I want Code Java and Screenshot output 1. Open Eclipse and Create new Java Project a. Name it YOUR FIRST NAME and LASTNAME (i.e., Nasser

I want Code Java and Screenshot output

image text in transcribed

image text in transcribedimage text in transcribed

1. Open Eclipse and Create new Java Project a. Name it "YOUR FIRST NAME and LASTNAME" (i.e., Nasser Alghamdi) 2. Create new classes: Person and Student a. Write appropriate package name for each b. Use the following class diagrams to write up the two classes code in Java each one in a separated file 3. In Person class: a. In the Constructor you must initialize name variables b. In getName() method you must return the name's value 4. In Student class: a. The class must inherit the Person class b. In the Constructor you must initialize name using super's constructor and it must initialize id local to the Student class c. In getID() you must return the id value 5. Create Runner class that has the main method a. Create one object of type Student: i. name it student ii. use your name and id to initialize Student's attributes 6. Print student's name 7. Print student's id

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions