You are on page 1of 1

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. Java is a object oriented programming and to understand the functionality of OO P in Java, we first need to understand several fundamentals related to objects. These include class, method, inheritance, encapsulation, abstraction, polymorphi sm etc. Class - It is the central point of OOP and that contains data and codes with beh avior. In Java everything happens within class and it describes a set of objects with common behavior. The class definition describes all the properties, behavi or, and identity of objects present within that class. As far as types of classe s are concerned, there are predefined classes in languages like C++ and Pascal. But in Java one can define his/her own types with data and code. Object - Objects are the basic unit of object orientation with behavior, identit y. As we mentioned above, these are part of a class but are not the same. An obj ect is expressed by the variable and methods within the objects. Again these var iables and methods are distinguished from each other as instant variables, insta nt methods and class variable and class methods. Methods - We know that a class can define both attributes and behaviors. Again attributes are defined by variables and behaviors are represented by methods. In other words, methods define the abilities of an object.

You might also like