Java: Object Oriented Programming

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.

Other JavaScripts pages you read will almost certainly pass on frequently to objects, events, methods, and properties. This tutorial will learn by example, without focusing too profoundly on OOP terminology. However, you will need a basic fundamental of these terms to use other JavaScript references. Your web page document is an object. Any web page may involve table, form, button, image, or link on your page is also an object. Each object has confident properties. For example, the background color of your document is written document.bgcolor. You would change the color of your page to red by scripts code writing the line document.bgcolor=”red”

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.