Вы находитесь на странице: 1из 1

Inheritance - This is the mechanism of organizing and structuring software progr am.

Though objects are distinguished from each other by some additional features but there are objects that share certain things common. In object oriented prog ramming classes can inherit some common behavior and state from others. Inherita nce in OOP allows to define a general class and later to organize some other cla sses simply adding some details with the old class definition. This saves work a s the special class inherits all the properties of the old general class and as a programmer you only require the new features. This helps in a better data anal ysis, accurate coding and reduces development time. Abstraction - The process of abstraction in Java is used to hide certain details and only show the essential features of the object. In other words, it deals wi th the outside view of an object (interface). Encapsulation - This is an important programming concept that assists in separat ing an object's state from its behavior. This helps in hiding an object's data d escribing its state from any further modification by external component. In Java there are four different terms used for hiding data constructs and these are pu blic, private, protected and package. As we know an object can associated with d ata with predefined classes and in any application an object can know about the data it needs to know about. So any unnecessary data are not required by an obje ct can be hidden by this process. It can also be termed as information hiding th at prohibits outsiders in seeing the inside of an object in which abstraction is implemented. Polymorphism - It describes the ability of the object in belonging to different types with specific behavior of each type. So by using this, one object can be t reated like another and in this way it can create and define multiple level of i nterface. Here the programmers need not have to know the exact type of object in advance and this is being implemented at runtime. Object Oriented Programming or OOP is the technique to create programs based on the real world. OOPs and Its Concepts in Java Brief Introduction to OOP Object Oriented Programming or OOP is the technique to create programs based on the real world. Unlike procedural programming, here in the OOP programming model programs are organized around objects and data rather than actions and logic. O bjects represent some concepts or things and like any other objects in the real Objects in programming language have certain behavior, properties, type, and ide ntity. In OOP based language the principal aim is to find out the objects to man ipulate and their relation between each other. OOP offers greater flexibility an d compatibility and is popular in developing larger application. Another importa nt work in OOP is to classify objects into different types according to their pr operties and behavior. So OOP based software application development includes th e analysis of the problem, preparing a solution, coding and finally its maintena nce.

Вам также может понравиться