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

What does it mean that a method or class is abstract, What does it mean tha...

What does it mean that a method or class is abstract? An abstract class cannot be instantiated. Abstract methods may only be included in abstract classes. However, an abstract

Create sudoku in java, The SudCell Class A single cell in a Sudoku ...

The SudCell Class A single cell in a Sudoku must clearly represent a number from 1 to 9 .  But in a solver context, we need much more.  It isn't enough to say "this c

Methods, I need the five methods public class Ex1Program { public void...

I need the five methods public class Ex1Program { public void start() { // Step 1. Declare and construct an array of 19 Movie objects (call the array films)

Develop a customer relationship management system, You are a newly recruite...

You are a newly recruited programmer, working for an IT company. This company won a contract to develop a Customer Relationship Management System (CRM) for a major retailer. The CR

Compression, 1 occurrence of "oog", and 1 occurrence each of "goog", "oogo"...

1 occurrence of "oog", and 1 occurrence each of "goog", "oogo",

Http 404 error /myproject/controller notfound, Running a sample Java web ap...

Running a sample Java web application from the web get http 404 error

Explain labeled loops in details, Explain Labeled Loops in details ? Ge...

Explain Labeled Loops in details ? Generally inside nested loops break and continue exit the innermost enclosing loop. For instance consider the subsequent loops. for (int i=1

Explain how several ways businesses monitor their employees, Explain how se...

Explain how several ways businesses monitor their employees? Systems are available in which monitor or most every key stroke which an employee forms on computer. Systems are av

What is mvc, Model-View-Controller (MVC) is a design pattern put together t...

Model-View-Controller (MVC) is a design pattern put together to help control change. MVC decouples interface from business logic and data. ? Model: The model having the core of

Give an example of class or static members, Give an example of Class or sta...

Give an example of Class or static Members? Below is a Car class along with such a speedLimit field and getSpeedLimit() method. public class Car { private String licensePla

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