The program develops a driving license system that records both generic drivers and commercial drivers. The class for commercial drivers inherits the methods and instance variables from the class for generic drivers. Method overriding is used when the subclass wants to alter its method.
You'll learn most by trying my code while watching the video.
Please post your improvement on my code on the comments.
Concepts:
Inheritance
"protected" keyword
"super" keyword
Method overriding
Playlist of my Java course
https://www.youtube.com/playlist?list=PLtQo0sxRN7JLr647f8RTzS58u8Rv5jxT5
Playlist of my Java examples
https://www.youtube.com/playlist?list=PLtQo0sxRN7JKKla3_GAF05dySjyy3nINa