when to for abstract class and when to go for interface
Answer Posted / sumit kumar
if your class design have some common and some different
behavior then go for - abstract class
if your class design have only different behavior then go
for interface.
| Is This Answer Correct ? | 12 Yes | 2 No |
Post New Answer View All Answers
Do you need to import math in java?
define polymorphism in java
Is object a data type in java?
What is java literals?
What is == mean?
What is java argument list?
How to perform quicksort in java?
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 the list interface in java programming?
What is an infinite loop?
What is wrapper class html?
Are functions objects in java?
What is difference overloading and overriding?
How can you traverse a linked list in java?
What are java packages?