Answered step by step
Verified Expert Solution
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 propertiesfieldsattributes 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 if it is an integer, if it is a doublefloat variable, an empty string if
it is a String object, etc.
Initialize the propertiesattributesfiled of the Java class with the input parameters to the second
constructor.
Implement a setter and a getter method for each propertyattributefield Add an appropriate modifier to
each settergetter 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 extendsinheritance 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 to
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started