Question:
What is the abstraction? Give example?
Answer:
Abstraction means to hide the unnecessary data so we use for that abstract class or abstract methods. EX:abstract class car { abstract void fun() {} } Source: CoolInterview.com
Answered by: AnilKumar | Date: 10/21/2007
| Contact AnilKumar
Abstraction means "giving the relevant details",just opposite to the encapsulation that is hiding the irrelevant details, Source: CoolInterview.com
Answered by: ahil | Date: 11/27/2007
| Contact ahil
Abstraction is the mechanism of exposing only essential features by hiding the implementation details. Source: CoolInterview.com
Answered by: Raja | Date: 11/30/2007
| Contact Raja
abstract class is a class which is only declared not defined. it can have both abstract as well as concrete method.it can not be instantiated.
ex: abstract class student { abstract void calc(); void sum() { c=a+b;} }
Source: CoolInterview.com
Answered by: raju kumar | Date: 12/9/2007
| Contact raju kumar
Abstraction means hiding unnecessary information. Java provide some function in the form of class to hide its working, developer only need to use that class & interfaces to obtained specific functionality best example is displaying the Hello to monitor in that situation if programmer think how this low level activity happen then it is of no use so Java provide System class for this functionality. In real time we can consider examlpe of car, their is no need to know about cars hundreds of parts ,we only need to drive it Thats exactly abstraction is. Source: CoolInterview.com
Answered by: Rahul Pande | Date: 2/12/2008
| Contact Rahul Pande
Abstraction means hiding the details and providing the features. eg. a car driver is only concerned with driving a car, not the internal working of engine. Source: CoolInterview.com
Answered by: kamal nayan bhardwaj | Date: 6/11/2008
| Contact kamal nayan bhardwaj
Abstraction shows the essential features,doesn't shows the non essential features. Through abstraction we can manage the complicity of program . Source: CoolInterview.com
Answered by: syamala | Date: 11/14/2008
| Contact syamala
Abstraction is a hide the uneccessary data and it is implement in programing by modifier Source: CoolInterview.com
Answered by: Vivek Admaik | Date: 2/3/2010
| Contact Vivek Admaik
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|