purpose of abstraction and interface



purpose of abstraction and interface..

Answer / Ahmad Ashraf

Abstraction in programming is the process of hiding complex details and exposing only essential features or interfaces to the user. It allows for easier understanding, maintenance, and reuse of code by reducing complexity and increasing modularity. Interfaces, on the other hand, are a way of defining a contract between different parts of a system, ensuring compatibility and allowing components to communicate effectively without revealing their internal workings.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Programming Languages AllOther Interview Questions

Write a shell program. Enter basic pay of an employee and calculate DA, HRA, Deduction, Gross pay and Net pay as follows: DA = 75 % of BASIC HRA = 10 % of BASIC DEDUCTION = 15 % of BASIC GROSS PAY = BASIC+DA+HRA NET PAY = GROSS PAY-DEDUCTION.

1 Answers   TCS,


Suppose i have all the implementation code required is written in doGet() but my class has doPost() method. i need code implemented in doGet() how can we do that?

1 Answers  


Give examples of macro quoting function?

0 Answers   GE,


3.Give the formula for determine the range of the data type?

1 Answers  


what is log files in qtp what is use

1 Answers   HSBC,


If i have a dataset queried from Sql and I would like to insert the dataset into a specific node in an xml document how do I do this

1 Answers   SGT,


when we use mantis? how learn mantis?

1 Answers  


In OB52 , How to define two open posting period, Like only 5 and 8 posting should be open.. should not open 6 and 7..period..

1 Answers  


cobol is execution r not without jcl

0 Answers   IBM,


you have a computer with 80GB hard disk and ubuntu 8.04 is installed on entire hard disk.now you have to create a seprate partition for windows OS and install win XP as dual boot.write down the steps involved along with the commands

1 Answers   Anand Group, Indian Navy, TCS,


What is abstract Method i want the exact definition and is there any possibility to declare class as abstract without any abstract methods in that class?If it is possible then tell me why and how?

1 Answers  


can u send some model papers how computer awareness questions are asked in goverment jobs(oriental insurance)to my mail id me.priyankapadma@rediff.com

1 Answers  


Categories