Skip to content

AsrielDreemurrGM/Generics_Car_Collection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Generics_Car_Collection

This repository contains Java examples of the use of generics, abstract classes, inheritance, and type-safe collections. It is structured to provide simple, clear demonstrations of these core concepts.

πŸš— Features

  • Abstract Class Car: Base class representing common car properties;
  • Concrete Car Classes: Multiple concrete classes extending Car to demonstrate inheritance;
  • Generics Example: Uses generic lists (List<T>) and wildcard methods to print elements in a type-safe way;
  • Main App Class: Demonstrates object creation, inheritance, list usage, and printing elements with a static generic method.

πŸ“… Commit Highlights

Jun 7, 2025

  • Added generic list example that uses T and static method with wildcard;
  • Renamed genericmodels package to generic;
  • Created App main class to display car information;
  • Created Car abstract class and three concrete car classes with inheritance;
  • Overrode toString() in Car for clear display in lists.

Jun 6, 2025

  • Created starting project structure and initial class files;
  • Added .gitignore to project.

About

Java examples of generics, abstract classes, inheritance, and type-safe collections.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages