Question: 2 questions (java code) 1. Write a program to calculate the area and circumference of a circle by writing Class circle and provide constructor, set
1. Write a program to calculate the area and circumference of a circle by writing Class circle and provide constructor, set and get methods to the instance variable. Create object for the Circle. 2. Define a class of student, the student has name, roll number, address and Phone Number. All attributes are public in access. a. Initialize the fields of class student with the values given below. name = Your name rollNumber = your Id address = Your address phoneNumber = Your phone number b. Give option to user if they would like to change the information
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
