Question: 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 LabGoals This lab gives you a look at some of the objectoriented features built into Java, namely: 1) Inheritance, which allows you tocreate subclasses to override the behavior of parent classes 2 The classpathand packages, which help to organize the classes of a large projectinto multiple directories 3) Jar files, which pack multiple class files into

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!