UrbanPro
true

Learn Java Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

JAVA OOPs Concepts (Object-Oriented Programming System)

Gaurav Kothari
16/02/2021 0 0

JAVA OOPs Concepts (Object-Oriented Programming System)

It is primarily having below crucial points. Without below essential points, we will never be able to achieve OOPs in java, PHP, C#, etc. Now let us see the high-level understanding of OOPs concepts.

  • Object --> is nothing, but it is a real-world entity which we can see or feel. In other words, we can say object have shape, behaviour and from which we can perform some task. For ex: Car, Pen, book, etc. (Object create at runtime and reside in heap memory)
  • Class --> in simple words we can say it is a blueprint from which objects can be created. (It contains variables and methods in it) For ex:

                     public class TestCLass1{
                              //This is a java class
                            //It can have variables and techniques and some logics
                      }

  • Inheritance--> it is parent-child relationship. A child will acquire all properties from its parent. In other words, child class will acquire all behaviour and properties from the parent class. Importance of keywords in inheritance is (extends, implements). There are 3-4 types of inheritance exist. (IS-a and HAS-a relationship). Do connect with me will explain you in detail followed by real coding on IDEs.
  • Polymorphism--> in simple words we can say it is “performing the same task in different ways”. Poly means multiple and morphism means forms in whole (various forms). Two most import topic under this method overloading and method overriding.
  • Abstraction-->is data hiding. It is hiding of real implementation and only showing the functionality. For ex: downloading .exe file, it shows only installation not real code behind that .exe file.
  • Encapsulation-->Wrapping of data in a single unit. Java class is one of the encapsulation. For ex: just like different medicine wrapped under on capsule is also encapsulation.

               public class TestClass { //Here private sTest is wrapped under TestClass

                        private String sTest="Hi";

                        public String getsTest() {

                              return sTest;}

                        public void setsTest(String sTest) {

                              this.sTest = sTest;

               }}

 

Please add on comments and like this lesson, if it gave you some revision or refreshment on OOPs concepts.

0 Dislike
Follow 2

Please Enter a comment

Submit

Other Lessons for You

Demand of java in industry
Java is one of the widest use language in the industry all around the world As in software market more than 80% software, platform developed using java. Java comes in three flavours:- j2se for window based...

Prashant Tomer

0 0
0

10 Cool SQL Optimizations That Do Not Depend On The Cost Model
Today, we don’t want to talk about cost based optimisation, i.e. optimisations that depend on a database’s cost model. We’ll look into much simpler optimisations that can be implemented...

Java Training Syllabus
Learn JAVA-J2EE Syllabus Core Java - Syllabus aligned to OCA Exam - JDK 8 Object-Oriented Programming (OOPS) concepts: Programming Languages Object Oriented Programming Classes & Objects Pillars...

Why Should We Learn Java Language?
Most of starters has confusion today that which of the programming language should be chosen to work on. It totally depends upon your need. As per my opinion, if you want to grow your career in IT industry...

Create Immutable Class
Snippet of an Immutable Class: package com.stringhr; /*Declare the class as 'final'. This would prevent any other class from extending it and hence from overriding any method from it which could modify...
X

Looking for Java Training Classes?

The best tutors for Java Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Java Training with the Best Tutors

The best Tutors for Java Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more