What is a "Driver" Class in Java?

Опубликовано: 06 Апрель 2023
на канале: Logic Lambda
2,996
41

A "driver" class is a Java class that uses a user-defined Java class. For our purposes, we use a driver class to test that the classes we right work as expected.

0:05 - A review of our Class that we want to test
0:30 - Creating the driver class - don't forget to add main
1:12 - Instantiating some objects in
1:50 - Testing the toString method (called implicitly)
2:15 - Testing the behaviors of the objects
3:50 - Discussion about driver classes