amit patel


{ City } ahmedabad
< Country > india
* Profession * sr. developer
User No # 49641
Total Questions Posted # 0
Total Answers Posted # 2

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 15
Users Marked my Answers as Wrong # 1
Questions / { amit patel }
Questions Answers Category Views Company eMail




Answers / { amit patel }

Question { Wipro, 3759 }

What are other modifiers?


Answer

Accessibility Modifiers : public, protected, private
Others : static, abstract, final, transient,
volatile,synchronised

Is This Answer Correct ?    1 Yes 0 No

Question { 11690 }

what is main purpose of abstract class?


Answer

Abstract class is used to implement common behavior which is
required by all subclasses but have some behavior which is
specific to subclass.

E.g., you want to implement a DocumentViewer App. Basic
operations are like open, view and close. open and close
requires no specific implementation while view require
specific implementation. Make DocumentViewer abstract,
implement open, close and make view as abstract. Now view is
responsibility of subclass. Like PDFViewer will have own
implementation for view()

Is This Answer Correct ?    14 Yes 1 No