Assignemnt
Lab 1- Abstraction
1. Create a super class for 3-Dimension shapes.
2. Set one of the abstract methods to CalculateVolume()
3. Create at least three extended classes for the 3DShapes Super Class
4. In the extended class, use the @override directive to calculate volume for different 3-D Object (Cylinder, Sphere, Cone, Rectangle, and Cube)
Lab 2
Write the class that will accept the temperature and scale to convert from F -C or C-F based on the information provided.
Class temp {
// varibales
Void conversion ( temp, scale){
//conversion code
}
Class testtemp {
Public static void main (string[] args ) {
}
Lab 3- Encapsulation
1. Modify the Temperature conversion program that was given in Lab 2 to Encapsulate the temperature and scale variables.
2. Make the scale and temperature variables private.
3. Use the setter and getters in the Temperature Conversion class to modify the private variables.
Format your assignment according to the following formatting requirements:
1. The answer should be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.
2. The response also includes a cover page containing the title of the assignment, the student's name, the course title, and the date. The cover page is not included in the required page length.
3. Also include a reference page. The Citations and references should follow APA format. The reference page is not included in the required page length.
Attachment:- Lab-2-Class.rar