1 / 3

Object-oriented programming (OOPs) concept in Java

<br>Object-oriented programming (OOPs) concept in Java<br>Object-oriented programming: as the name implies, Object-Oriented Programming or OOPs refers to languages that use objects in programming. Object-oriented programming aims to real-world entities, such as inheritance, to hide, to implement polymorphism, etc. in the programming. The main goal of OOP is that data and functions that operate on them, so that no other part of the code to access this data except this feature.

isharoyhr
Download Presentation

Object-oriented programming (OOPs) concept in Java

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Guide for java beginners-Object-oriented programming (OOPs) concept inJava What is Java? Javais a programming language and a computing platform for application development. It was first released in 1995 by Sun Microsystem and later acquired by Oracle Corporation. It is one of the most commonly used programming languages. What is Javaplatform? Java platform is a collection of programs that help to develop and run programs in the Java programming language. Java platform includes an execution engine, a compiler, and a number of libraries. JAVA is a platform-independent language. It is not specific to any processor or operatingsystem. Object-oriented programming (OOPs) concept inJava Object-oriented programming: as the name implies, Object-Oriented Programming or OOPs refers to languages that use objects in programming. Object-oriented programming aims to real-world entities, such as inheritance, to hide, to implement polymorphism, etc. in the programming. The main goal of OOP is that data and functions that operate on them, so that no other part of the code to access this data except this feature. • OOPsConcepts: • Polymorphism • Inheritance • Encapsulation • Abstraction

  2. Class • Object • Method https://www.exltech.in/java-training.html Polymorphism: polymorphism refers to the ability of OOPs programming languages to distinguish efficiently between entities of the same name. This is done by Java using the signature and declaration of theseentities. Inheritance: inheritance is an important pillar of OOP (object oriented programming). It is the mechanism in java that allows a class to inherit the functions(fields and methods) of anotherclass. Encapsulation: encapsulation is defined as wrapping of data under a single unit. It isthemechanismthatbindscodeanddatathatitmanipulates.Anotherwayto

  3. think about encapsulation is that it is a shield that prevents the data from being accessed by the code outside of thisshield. Abstraction: data abstraction is the property by which only the essential details are displayed to the user.The trivial or non-essential units are not displayed to the user. Ex: a car is regarded as a car rather than its individualcomponents. Class: A Class is a custom blueprint or prototype from which to create objects. It represents the set of properties or methods that are common to all objects of a type. Object: it is a basic unit of object-oriented programming and represents the real- world entities. A typical Java program creates many objects that are known to interact by calling methods. Method: a method is a collection of statements that perform a specific task and return the result to the caller. A method can perform a specific task without returning anything. Methods allow us to re-use the code without re-writing the code. In Java, each method must be part of a class that is different from languages such as C, C++, andPython. Message Passing: objects communicate with each other by sending and receiving information. A message for an object is a request for execution of a procedure and therefore calls a function in the receiving object that generates the desired results. When the message is delivered, the name of the object, the name of the function, and the information to be sent arespecified. For more details:https://www.exltech.in

More Related