Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Develop a Java application including the following pieces of information: A class in Java that includes the university info, including name, year of establishment, number

Develop a Java application including the following pieces of information:
A class in Java that includes the university info, including name, year of establishment, number of students,
number of faculty members, number of faculties, number of departments of each faculty, and three facilities.
Create an appropriate class in Java.
Add an appropriate modifier to the class in Java.
What are and how many properties/fields/attributes does the Java class have?
Add access modifiers to the properties of the Java class.
Overload constructors and add an appropriate access modifier to each constructor.
Create two constructors, one default constructor, and a constructor to accept all properties as input
parameters. Initial each property with 0 if it is an integer, 0.00 if it is a double/float variable, an empty string if
it is a String object, etc.
Initialize the properties/attributes/filed of the Java class with the input parameters to the second
constructor.
Implement a setter and a getter method for each property/attribute/field. Add an appropriate modifier to
each setter/getter method.
Implement another class and add the Java "main" method to it.
Instantiate from the class you already created for the university. (Do not use extends/inheritance concept).
Create a new instance and initial the properties using the default constructor
Print out the value of each property.
Create another new instance and initialize the properties using the second constructor's input variables.
Print out the values of the properties.
Initialize the value of each property using its related setter method.
Print values of each property using its related getter method.
Which part of this assignment was more challenging for you?
Could you handle the challenge or not?
How do you rate your developed Java application from 0 to 10?
image text in transcribed

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 Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

Students also viewed these Databases questions

Question

Banks hold more liquid assets than do most businesses. Explain why.

Answered: 1 week ago