Can you have a constructor in abstract class?
Answer Posted / abdul hannan
Yes. We can have constructor in an abstract class but we can
not directly instantiate it. If the abstract class have no
argument constructor, it will automatically call by the
constructor of subclass through constructor chaining. If
abstract class have constructor with argument, then we need
to call it by super() and pass the argument in it.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is meant by flickering?
For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green White will have 1 Weight. Red and Green carry no weights. Shortest path is the path with less weight when you add up the weights in the path.
What is sortedmap in java?
What do you understand by the term polymorphism?
Is there any limitation of using inheritance?
What are the 4 versions of java?
What is quick sort in java?
How to instantiate member inner class?
how can i use a nonsynchronized hashtable?
How define set in java?
What is off heap memory?
How you can force the garbage collection?
Can constructor be synchronized?
Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain
What’s the difference between the methods sleep() and wait()?