What is object oriented programming language, JAVA Programming

Assignment Help:

What is object oriented programming language?

In classic, procedural programming you try to form the real world problem you're attempting to solve fit a few, predetermined data types: integers, floats, Strings, and arrays perhaps. In object oriented programming you form a model for a real world system. Classes are programmer-defined types that model the elements of the system.

A class is a programmer describes type that serves as a blueprint for instances of the class. You could still have ints, Strings, floats, and arrays; but you can also have cars, motorcycles, people, buildings, clouds, dogs, angles, students, courses, bank accounts, and any other type that's significant to your problem.

Classes specify the data and behavior possessed both through themselves and through the objects built from them. A class has two parts: the fields and the methods. Fields describe what the class is. Techniques describe what the class does.

Using the blueprint provided by a class, you can form any number of objects, each of which is known as an instance of the class. Different objects of the similar class have the same fields and techniques, but the values of the fields will in general differ. For instance, all people have eye color; but the color of each person's eyes can be various from others.

Instead, objects have the same techniques as all other objects in the class except in so far as the techniques depend on the value of the fields and arguments to the method.

This dichotomy is reflected in the runtime form of objects. Every object has a separate block of memory to store its fields, but the bytes in the methods are shared among all objects in a class.

Another general analogy is that a class is to an object as a cookie cutter is to a cookie. One cookie cutter can make several cookies. There may be only one class, but there can be many objects in in which class. Each object is an instance of one class.


Related Discussions:- What is object oriented programming language

Why you don''t need to import java.lang.*, Why You don't need to import jav...

Why You don't need to import java.lang.* There is one exception to the import rule. All classes in the java.lang package are imported by default. Therefore you do not required

State about the garbage collection, Explain garbage collection. Java us...

Explain garbage collection. Java uses garbage collection to free the memory. By cleaning those objects which is no longer reference by any of the program. Step involve in clean

Write a program to perform multiplication and division, Write a program to ...

Write a program to perform multiplication and division in java? Of course Java could also do multiplication and division. Because most keyboards don't have the times and divisi

How to write exception subclasses, How to Write Exception Subclasses ? ...

How to Write Exception Subclasses ? Most exception subclasses inherit all their functionality from the superclass. Each subclass majorly serves as a marker for a various types

What is linear search, What is linear search? It is the simplest form o...

What is linear search? It is the simplest form of search. It searches for the element sequentially starting from first element. This search has a drawback if element is located

Which are three elements of event handler, The event handler attribute cons...

The event handler attribute consists of three elements. Write about each of them? 1. The identifier of the event handler. 2. The equal sign. 3. A string consisting of JavaScrip

Windows registry, need a java program that can read and display the values ...

need a java program that can read and display the values from a windows registry

Jsp retrive data, how to retrive data in one block from database by click ...

how to retrive data in one block from database by click data link in another block

What are the kinds of computer network among nodes, What are the kinds of c...

What are the kinds of computer network according to the distance among nodes? the kinds of computer network according to the distance among nodes are as follows: There are t

What is meant by semantic error, What is meant by semantic error? Occur...

What is meant by semantic error? Occur while a statement executes and has an effect not intended through the programmer and Frequently times occur only in unusual & infrequent

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd