Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN JAVA PLEASE Student -name: String -studentID: int + Studento) + Studentin: String, id : int) + setID(id:int): void + setName(name : String):void + getID():

image text in transcribedIN JAVA PLEASE

Student -name: String -studentID: int + Studento) + Studentin: String, id : int) + setID(id:int): void + setName(name : String):void + getID(): int + getName():String 1- Write a class declaration for Student class and add the two variables to the class declaration name: This field is a String variable that holds the student's name. studentID: The studentID is an int variable that holds the student's ID number. 2. The class should have the following constructors: A constructor that accepts the following value as argument and assigns it to the appropriate fields: student's name and student's ID number. A no-arg constructor that assigns empty strings ("") to the name, and to the studentID field. 3. Write mutator methods that store values in these fields and accessor methods that return the values in these fields as in above UML diagram. 4. Once you have written the class, write a separate program that creates two Student objects to hold the following data: name studentID Omer 2011111 Amal 2100001

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Database Administrator Limited Edition

Authors: Martif Way

1st Edition

B0CGG89N8Z

Students also viewed these Databases questions

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago