For my new course programming with Java, I had do a new setup. Thankfully, the Oracle website had thorough instructions on how to install Java as well as guidance to the applications necessary to start writing and compiling the code. A visit to the Java tutorials website provided lots of information on which applications are available and how to start on the journey to programming in Java. https://docs.oracle.com/javase/tutorial/index.html
Java, Python and C++ are three popular object-oriented languages (OOPs). I like to think of them in this way: I think of an object is as a person. We can then have a collection of persons called humans. Humans in this case will be considered a class. As a member of the human class, each person has an age and a name property which can be different, but each person is still human.
A class by can inherited, therefore we can use the initial human class to create more human classes, and they will also have an age, and a name. Now suppose we have a class of male humans. It has inherited the properties of age and name, but now it can have a new and different property called gender.
We know that humans exist all over the world and speak different languages. With polymorphism we can say that a every time we create a human in Germany, we teach that human German and every time we create a human in China, we teach that human Chinese. We are always going to create a human with an age and name, but depending on where that human is from, they are taught a different language.
In my understanding, abstraction and encapsulation are terms used for hiding the insides of a program so you can create new items without knowing all the parts. So for instance I could say create a new German male human, and out will pop a person with a name, age, and gender who speaks German. All without knowing how the person was created.
I hope this helps make the concepts of object oriented programming a little easier to understand.

Source: Java T Point
Reference:
Java T Point. Java OOPs Concepts. Retrieved from https://www.javatpoint.com/java-oops-concepts
Post a Comment