Find Jobs
Hire Freelancers

CarbonFootprint Interface: Polymorphism - repost

R100-210 ZAR

Закрито
Опублікований over 10 years ago

R100-210 ZAR

Оплачується при отриманні
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 проекту: 5019133

Про проект

7 пропозицій(-ї)
Дистанційний проект
Активність 10 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
7 фрілансерів(-и) готові виконати цю роботу у середньому за R1 058 ZAR
Аватарка користувача
Can help... I am an Expert... Please check the past projects I have handled and check my reviews for what employers have to say about my work... Can start right now...
R2 000 ZAR за 3 дні(-в)
4,9 (13 відгуки(-ів))
5,5
5,5
Аватарка користувача
Hello, I can do this work for you. For further details PM me. I have expertise in C and can do data structures. With Regards.
R2 222 ZAR за 3 дні(-в)
5,0 (2 відгуки(-ів))
4,2
4,2
Аватарка користувача
Hello I am interested in this project. Lets discuss and so I can start working on it. Regards, Abhay
R1 722 ZAR за 30 дні(-в)
5,0 (9 відгуки(-ів))
3,6
3,6
Аватарка користувача
Easy task.. one days work... Check my profile for my previous work and reviews.. Thanks...............
R210 ZAR за 1 день
5,0 (14 відгуки(-ів))
3,5
3,5
Аватарка користувача
16 years' Java development experience. I can provide well-documented, fully-commented code with clean object-oriented design to meet your specification in 1 day.
R800 ZAR за 1 день
5,0 (4 відгуки(-ів))
3,4
3,4
Аватарка користувача
We understand your requirements and ready to start as soon as possible. We provide On time delivery and excellent delivery quality. We have 4 years of working experience on Java, J2EE, J2ME, Spring. We are group of software professionals resigned from our last job and started own business. So you can understand in which position we are belonging now. So please give us chance to work with you. We have experienced resource, they bound to perform best for your project and to be done on time.
R230 ZAR за 10 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
hy i am c/c++ developer with java knowledge having depth understanding of object oriented programing concepts so i can help you
R220 ZAR за 3 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0

Про клієнта

Прапор PERU
Peru
0,0
0
На сайті з жовт. 11, 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)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.