From 9cccd52aece5dfadd19451bb40cb29b86db2da87 Mon Sep 17 00:00:00 2001 From: Shoaib Date: Tue, 25 Jun 2019 09:51:06 -0700 Subject: [PATCH] constructor in abstract class (#29329) Have added some information in abstract classes --- guide/english/java/abstract-class/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guide/english/java/abstract-class/index.md b/guide/english/java/abstract-class/index.md index af26fd0449..2d99ce288e 100644 --- a/guide/english/java/abstract-class/index.md +++ b/guide/english/java/abstract-class/index.md @@ -46,7 +46,7 @@ Car carObj = new Car(); // valid Motorcycle mBikeObj = new Motorcycle(); // valid ``` -If the child class doesn't implement the abstract methods of the parent, it becomes an abstract class. +If the child class doesn't implement the abstract methods of the parent, it becomes an abstract class. An abstract class can also contain constructors. A constructor of abstract class is called when an instance of a inherited class is created. #### More Information -- [Oracle Java Docs - Abstract Classes](https://docs.oracle.com/javase/specs/jls/se7/html/jls-8.html#jls-8.1.1.1) \ No newline at end of file +- [Oracle Java Docs - Abstract Classes](https://docs.oracle.com/javase/specs/jls/se7/html/jls-8.html#jls-8.1.1.1)