Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions

Question

What is the motivation for a new-issue swap trade?

Answered: 1 week ago

Question

What impediments originate in society at large?

Answered: 1 week ago