Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/monicule/oop-car-nd
Homework from oop
https://github.com/monicule/oop-car-nd
homework javascript oop-principles
Last synced: about 1 month ago
JSON representation
Homework from oop
- Host: GitHub
- URL: https://github.com/monicule/oop-car-nd
- Owner: monicule
- Created: 2024-07-22T06:34:13.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-22T08:18:07.000Z (5 months ago)
- Last Synced: 2024-07-23T08:07:08.558Z (5 months ago)
- Topics: homework, javascript, oop-principles
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Namu darbas
class -> Car (Automobilis)
Savybės:
- pavadinimas (Audi)
- modelis (80)
- spalva
- kuro bako talpa (litrais)
- vidutinės kuro sąnaudos 100km
- ar įjungtas varyklis (default: false)
- greitis (default: 0)Metodai:
- ijungti varykli
- ijungto varykli dar karto ijungti negalima, sugadinti starteri
- isjungti varykli
- isjungto varyklio isjungti negalima...
- pradeti vaziuoti (greitis tiesiog tampa ne nulinis ir sunaudoja 2x litrus kuro sanaudu)
- vaziuoti (naudoja 1x litro kuro sanaudu)
- sustoti (greitis tiesiog tampa nulinis)
- kiek liko kuro?
- uzpilti kuro baka (kiek litrais)