Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CS 1113 LAB #10: Inheritance and the classpath Dr Cline Lab Goals This lab gives you a look at some of the object oriented features
CS 1113 LAB #10: Inheritance and the classpath Dr Cline Lab Goals This lab gives you a look at some of the object oriented features built into Java, namely: 1) Inheritance, which allows you to create subclasses to override the behavior of parent classes 2 The classpath and packages, which help to organize the classes of a large project into multiple directories 3) Jar files, which pack multiple class files into a single compressed file for easy distribution Motivation Inheritance is an important aspect of object-orientated design. It allows one class to customize its behavior while keeping the same methods as the parent class. For example, a class called "Vehicle" might have a method called "move". The subclasses of vehicle "Boat", Car" and "Tank" will also have comove" methods, but will accomplish this in different ways. In this lab, you will write a set of classes that descend from a parent class "Geometricobjects. Each of these will have different data and be able to calculate their area and perimeter. In addition, this lab will introduce you to a number of features and utilities provided by the Java language and the jdk: namely the classpath, packages, and jar files. Java packages allow you to manage large projects that have more content than you want to put in a single directory Thejar utiltiy is a convenient publishing method for ajava program. It zips up a bunch of class files into a single file that can be executed by the virtual machine (VM In this lab, you will learn how to make a jar file
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