Added Eg to use Abstract Clases

I made these program using IntelliJ