Java Tutorial – What Is Object Oriented Programming in Java?
Table of Contents
ToggleJava is termed an Object Oriented language. So, exactly what does Object Oriented indicate? It signifies that the foundations of virtually any computer program built-in Java may very well be imagined in terms of Objects. A good example of this idea is to take a look at a number sample business requirements for a product. Imagine that we are actually tasked with developing a computer program which should manage a huge public library system. This system will have to account for the whole set of branches belonging to the libraries, each of the materials that might be contained in the branches, in addition to any individual visitors that may would like to borrow books in the library’s branch.
First of all we could begin doing is look at these specifications and spot each of the words which happen to be nouns. For the record, a noun is really a person, place or thing. Thus, when you assess these specifications we discern the foregoing nouns:
1) Library
2) Book
3) Branch
4) Customer
All of these phrases definitely symbolize Objects in Java. That is, fundamentally, Object Oriented programming (aka O-O programming). What we might now go about doing, is just transfer these four Objects on to a single piece of old fashioned paper, and begin to find what types of attributes each one of these Objects possess What do I mean by attributes? Okay, in O-O development it is often known as recognizing the “has a” relationships. Here is an example, a Branch “has an” address, a Book “has a” title, a Customer “has a” designation. We could map out all of the significant attributes that all of these Objects have, and build ourselves a superb beginning point for the design of any Java application.
Object Oriented development enables developers to think in terms of real world “things” or Objects, and simply solve problems with those Objects. It is advisable to note that Java is actually not the only O-O programming language in existence, as it was actually recognized nearly five decades ago and a lot of popular programming languages make use of Object Oriented principles. Those languages may include C++, C#, Objective-C, Python, Ruby, and Visual Basic.
There are a lot more notions that happen to be essential in O-O programming languages including inheritance, polymorphism along with encapsulation. If you are interested in figuring out much more Object Oriented programming as it pertains to the Java language, there are lots of terrific Java tutorial blogs in existence nowadays.
You may also like
Archives
- November 2025
- October 2025
- September 2025
- August 2025
- July 2025
- June 2025
- May 2025
- April 2025
- March 2025
- February 2025
- January 2025
- November 2024
- October 2024
- September 2024
- August 2024
- July 2024
- June 2024
- May 2024
- April 2024
- March 2024
- February 2024
- January 2024
- December 2023
- November 2023
- October 2023
- September 2023
- August 2023
- July 2023
- June 2023
- May 2023
- April 2023
- March 2023
- February 2023
- January 2023
- December 2022
- November 2022
- October 2022
- September 2022
- August 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- April 2021
- March 2021
- February 2021
- January 2021
- December 2020
- November 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- October 2019
- September 2019
- August 2019
- July 2019
- June 2019
- May 2019
- April 2019
- March 2019
- February 2019
- January 2019
- December 2018
- November 2018
- October 2018
- September 2018
- January 2017
- July 2016
- June 2016
- April 2016
- February 2016
- June 2015
- July 2014
- February 2014
Calendar
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |

Leave a Reply
You must be logged in to post a comment.