Skip to main content

Posts

Showing posts with the label OOPS Concepts

Object Oriented Concepts in Java (OOPS Concepts)

Java OOPS Concepts      Object oriented programing language provides many concepts, such as Inheritance, Data Binding, Polymorphism etc. Object:     Any entity which has state and behavior is known as object. It can be physical or logical part. For example, a chair, pen, keyboard etc.     An object can be define as instance of class. An object contains an address and takes up some space in memory. Objects can communicate with each other without knowing the details of each others data or code. Only the type of response and message acceptance is important. The representation of object is same as below: Class:     Class is a collection of object. It is logical entity. Class can also be define as a blueprint from which you can create individual object. Class doesn't consume any space. Sample example of java class declaration is as follows:     class SampleDemo{          // Statements or logical code   ...