Find Jobs
Hire Freelancers

CarbonFootprint Interface: Polymorphism

$30-40 USD

Zamknięte
Opublikowano około 11 lat temu

$30-40 USD

Płatne przy odbiorze
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.
Identyfikator projektu: 4361307

Informację o projekcie

14 ofert
Zdalny projekt
Aktywny 11 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
14 freelancerzy składają oferty o średniej wysokości $44 USD dla tej pracy
Awatar Użytkownika
JAVA EXPERT ! Very easy assignment ! Ready to do it NOW
$30 USD w 1 dzień
5,0 (289 opinii)
7,0
7,0
Awatar Użytkownika
Hi, I can help you.
$30 USD w 1 dzień
4,8 (177 opinii)
6,4
6,4
Awatar Użytkownika
Hello, Please view PMB. Ashwin
$40 USD w 1 dzień
4,9 (39 opinii)
5,7
5,7
Awatar Użytkownika
Simple project, I can help you for sure, kindly check your pm, thanks.
$30 USD w 1 dzień
4,8 (40 opinii)
5,5
5,5
Awatar Użytkownika
Let me help you. Check your pmb plz.
$30 USD w 1 dzień
5,0 (30 opinii)
4,8
4,8
Awatar Użytkownika
I am Java expert. Please contact me now.
$35 USD w 1 dzień
4,9 (13 opinii)
4,0
4,0
Awatar Użytkownika
please check pmb for my further detail
$30 USD w 0 dzień
4,9 (22 opinii)
3,9
3,9
Awatar Użytkownika
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 w 1 dzień
4,4 (2 opinii)
3,4
3,4
Awatar Użytkownika
Nice straight forward assignment. I can help you here.
$40 USD w 2 dni
5,0 (7 opinii)
3,2
3,2
Awatar Użytkownika
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 w 1 dzień
5,0 (2 opinii)
2,0
2,0
Awatar Użytkownika
please check my pm
$50 USD w 3 dni
5,0 (4 opinii)
0,9
0,9
Awatar Użytkownika
Ready to start from now . Check PM.
$150 USD w 5 dni
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
Hi, I can do this.
$40 USD w 2 dni
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
I have the solution ready, choose me and I will send it immediately to you.
$30 USD w 1 dzień
0,0 (0 opinii)
0,0
0,0

O kliencie

Flaga UNITED STATES
United States
0,0
0
Członek od mar 23, 2013

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.