Answered step by step
Verified Expert Solution
Question
1 Approved Answer
75% Wed Apr 12 1016 46 AM QA O E Chrome File Edit View History Bookmarks People Window Help x C chegg Study I Guided
75% Wed Apr 12 1016 46 AM QA O E Chrome File Edit View History Bookmarks People Window Help x C chegg Study I Guided solutioi x C Chrome File Edit View History x M nbox jking199@students. X Lab 12.pdf ksuweb.kennesaw.edu hhaddad/Spring2017/CS1301/Lab12.pd Apps k D cs 130 Program YouTube home e CompTIA A+ Certifi IIowlLink online Ca M Inbox king 199@s PlayStation vue D Y2U40DAXNDgyZS... 5 Lab 12.pdf 1. Type and compile listing 9.8, page 345 (file CircleNithPrivateDataFields .java). otice that this is a class with no main method, you cannot run it. Page 1 of 2 2. Type, compile, and run listing 9.9, page 346 (file TestcircleWith PrivateDataFields .java). Observe the outputs and understand the displayed values. This program uses private variables (radius and numberofobjects). You have to use the get and set methods to access these private variables. 3. Next, modify the code in listing 9.9 to create another circle object, call it yourcircle with radius 40, display its radius and area, and then increase its radius by 50% and display the radius and area once again. Notice the syntax difference when accessing (displaying) the value of variables radius, area, and numberofobjects Save all files in the same folder Instructions: 1. Programs must be working correctly. 2. Programs must be completed and checked before working assignment #12. 3. Programs must be checked by the end of the designated lab session
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