where u use Abstraction and Interface in real time

Answer Posted / teja

When ever there is need of having same common features
among the subclasses of of super class we have to go for
AbstractClass,
When ever there is no common features for subclasses of
super class we have to go for interface

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define array. Tell me about 2-D array.

683


What are the characteristics of java?

613


if u open login & logout ,how can udisplay the timelogin & logout members ?

1848


What is console based application in java?

660


List primitive java types?

689






How many bytes is a string in java?

619


What is a flag variable?

645


What is meant by overloading?

689


What is function and method in java?

618


What is the purpose of finalization in java programming?

661


Write a java program to count the number of words present in a string?

610


Can we have this () and super () together?

692


How many bits is a 64 bit byte?

615


What are the two parts of a conditional statement?

611


What is static class

708