https://github.com/cornholio6969/carmodel
School OOP
https://github.com/cornholio6969/carmodel
avalonia js oop react school
Last synced: about 2 months ago
JSON representation
School OOP
- Host: GitHub
- URL: https://github.com/cornholio6969/carmodel
- Owner: Cornholio6969
- Created: 2025-09-08T10:14:30.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-09-08T10:28:57.000Z (10 months ago)
- Last Synced: 2025-10-05T09:04:52.830Z (9 months ago)
- Topics: avalonia, js, oop, react, school
- Language: TypeScript
- Homepage: https://plate.cornholio.dev
- Size: 173 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Corny – OOP Cars
This project demonstrates **object-oriented programming (OOP)** with cars and brands, implemented in three different environments:
- **Avalonia (.NET, C#)** – a modern cross-platform desktop GUI
- **TypeScript** – using modern browser APIs
- **JavaScript (jQuery)** – classic web development style
---
## Concept
The core of the project is two classes:
```csharp
class CarBrand {
public string Name { get; set; }
public CarBrand(string name) => Name = name;
}
class Car {
public string Name { get; set; }
public string Year { get; set; }
public decimal Price { get; set; }
public CarBrand Brand { get; set; }
public Car(string name, string year, decimal price, string brand) {
Name = name;
Year = year;
Price = price;
Brand = new CarBrand(brand);
}
}
```
---
## API
The project integrates with:
```
https://plate.cornholio.dev/?plate=...
```
This API is **powered by Cloudflare Workers**, making it lightweight and serverless.
It allows users to fetch car details (brand, model, year) directly from a license plate lookup.