Find Jobs
Hire Freelancers

CarbonFootprint Interface: Polymorphism

$30-40 USD

クローズ
投稿日: 約11年前

$30-40 USD

完了時にお支払い
Using interfaces, as you learned in this chapter, you can specify similar behaviors for possibly disparate classes. Governments and companies worldwide are becoming increasingly concerned with carbon footprints (annual releases of carbon dioxide into the atmosphere) from buildings burning various types of fuels for heat, vehicles burning fuels for power, and the like. Many scientists blame these greenhouse gases for the phenomenon called global warming. Create three small classes unrelated by inheritance—classes Building, Car and Bicycle. Give each class some unique appropriate attributes and behaviors that it does not have in common with other classes. Write an interface CarbonFootprint with a getCarbonFootprint method. Have each of your classes implement that interface, so that its getCarbonFootprint method calculates an appropriate carbon footprint for that class (check out a few websites that explain how to calculate carbon footprints). Write an application that creates objects of each of the three classes, places references to those objects in ArrayList, then iterates through the ArrayList, polymorphically invoking each object’s getCarbonFootprint method. For each object, print some identifying information and the object’s carbon footprint.
プロジェクト ID: 4361307

プロジェクトについて

14個の提案
リモートプロジェクト
アクティブ 11年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
この仕事に14人のフリーランサーが、平均$44 USDで入札しています
ユーザーアバター
JAVA EXPERT ! Very easy assignment ! Ready to do it NOW
$30 USD 1日以内
5.0 (289 レビュー)
7.0
7.0
ユーザーアバター
Hi, I can help you.
$30 USD 1日以内
4.8 (177 レビュー)
6.4
6.4
ユーザーアバター
Hello, Please view PMB. Ashwin
$40 USD 1日以内
4.9 (39 レビュー)
5.7
5.7
ユーザーアバター
Simple project, I can help you for sure, kindly check your pm, thanks.
$30 USD 1日以内
4.8 (40 レビュー)
5.5
5.5
ユーザーアバター
Let me help you. Check your pmb plz.
$30 USD 1日以内
5.0 (30 レビュー)
4.8
4.8
ユーザーアバター
I am Java expert. Please contact me now.
$35 USD 1日以内
4.9 (13 レビュー)
4.0
4.0
ユーザーアバター
please check pmb for my further detail
$30 USD 0日以内
4.9 (22 レビュー)
3.9
3.9
ユーザーアバター
Hi, I am a Java programmer and also a teacher. Have created many interfaces lkike this. I can do this one for you quickly.
$40 USD 1日以内
4.4 (2 レビュー)
3.4
3.4
ユーザーアバター
Nice straight forward assignment. I can help you here.
$40 USD 2日以内
5.0 (7 レビュー)
3.2
3.2
ユーザーアバター
Native English speaker with extensive technical experience. Degree in Comp Sci and have worked in the industry on lots of Java projects. Can get it done in a day or two max.
$40 USD 1日以内
5.0 (2 レビュー)
2.0
2.0
ユーザーアバター
please check my pm
$50 USD 3日以内
5.0 (4 レビュー)
0.9
0.9
ユーザーアバター
Ready to start from now . Check PM.
$150 USD 5日以内
0.0 (0 レビュー)
0.0
0.0
ユーザーアバター
Hi, I can do this.
$40 USD 2日以内
0.0 (0 レビュー)
0.0
0.0
ユーザーアバター
I have the solution ready, choose me and I will send it immediately to you.
$30 USD 1日以内
0.0 (0 レビュー)
0.0
0.0

クライアントについて

UNITED STATESのフラグ
United States
0.0
0
メンバー登録日:3月 23, 2013

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。