Java Learning Made Easy by Dheeraj Mehrotra - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

Features of OOP

00224.jpg00225.jpg00226.jpg00227.jpg

 

o Abstraction refers to the act of representing essential features without 00228.jpgincluding the background details or explanations.

 

00229.jpg00230.jpg00231.jpg

o Encapsulation is an act of wrapping up of data and methods into a single

00232.jpg

unit (called class). It is one of the most fundamental concepts of the Object

00233.jpg

Oriented programming. The very insulation of the data from direct access by the program is termed as Data Hiding. Encapsulation, is hence, just a way to implement Abstraction.

00234.jpg00235.jpg

o Inheritance is the process by which objects of one class acquire the properties of objects of another class. This further provides an important

00236.jpg

extension to the idea of reusability. i.e. a particular programmer can make use of an existing class and without any further modifications, add

00237.jpg

additional features and capabilities to it, by deriving a new class from the

00238.jpg

existing one, through inheritance.

00239.jpg00240.jpg00241.jpgo Polymorphism is the capacity to allow objects having different internal structures to share the same external interface. It is the ability for a 00242.jpgmessage or data to be processed in more than one form.
00243.jpg00244.jpg00245.jpg00246.jpg00247.jpg00248.jpg00249.jpgattention@computerscienceexpertise.com
00250.jpg00251.jpg00252.jpg
00253.jpg00254.jpg00255.jpg00256.jpg00257.jpg00258.jpg00259.jpg00260.jpg00261.jpg00262.jpg00263.jpg00264.jpg00265.jpg00266.jpg00267.jpg00268.jpg00269.jpg00270.jpg00271.jpg