Add more information about abstraction (#18461)

* Add more information about abstraction

* Update index.md
This commit is contained in:
Rosario
2018-10-12 17:04:11 +02:00
committed by Quincy Larson
parent 4b1976644a
commit b583b5646c

View File

@ -46,3 +46,4 @@ Car carObj = new Car(); // valid
Motorcycle mBikeObj = new Motorcycle(); // valid Motorcycle mBikeObj = new Motorcycle(); // valid
``` ```
If the child class doesn't implement the abstract methods of the father, it becomes an abstract class.