OOPs is a programming technique designed to simplify convoluted programming concepts. In fundamental nature, object-oriented programming revolves around the idea of user- and system-defined chunks of data, and controlled means of accessing and modifying those chunks. Object-oriented programming consists of Objects, Methods and Properties. An object is basically a black box which stores some information. Object may have a way for you to read that information and a way for you to write to, or change in sequence. It may also have other less noticeable ways of interacting with the information.
Some of the information in the object may essentially be directly easily reached; other information may necessitate you to use a method to access it – conceivably because the way the information is stored internally is of no use to you, or because only certain things can be written into that information space and the object needs to check that you’re not going outside those limits. The directly reachable bits of information in the object are its properties. The difference between data accessed via properties and data accessed via methods is that with properties, you see accurately what you’re doing to the object; with methods, unless you created the object yourself, you just see the effects of what you’re doing.
Most objects have a certain collection of things that they can do. Different objects can do different things, just as a light can turn on and off. A new document is opened with the method document. Open () you can write “Introduction of Java” to a document by typing document. Write (“Introduction of Java “). Open () and write () are both methods of the object: document.