Skip to content

SanchithaUdana/java-OOP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java OOP Concept

1_2WT9zyzcgv7pE6C7uf6uVQ

Languages and Tools:

java

OOPs (Object-Oriented Programming System)

Object-Oriented Programming (OOP) is a programming paradigm centered around the concept of "objects," which can contain data and methods. It is designed to model real-world entities and their interactions in a programmatic way. Here are the key concepts of OOP:

  1. Classes and Objects:

    • Class: A blueprint for creating objects. It defines the properties (attributes) and behaviors (methods) that the objects created from the class can have.
    • Object: An instance of a class. It represents a specific example of a class with actual values for its attributes.
  2. Encapsulation:

    • Encapsulation is the practice of bundling the data (attributes) and methods (functions) that operate on the data into a single unit called an object. It restricts direct access to some of an object's components, which is a means of preventing unintended interference and misuse of the data.
  3. Inheritance:

    • Inheritance is a mechanism in which one class (called a subclass or derived class) inherits the properties and behaviors of another class (called a superclass or base class). It allows for the creation of a new class that is based on an existing class, enabling code reuse and the extension of functionality.
  4. Polymorphism:

    • Polymorphism allows objects to be treated as instances of their parent class rather than their actual class. The most common use of polymorphism is when a parent class reference is used to refer to a child class object. It enables the same operation to behave differently on different classes.
  5. Abstraction:

    • Abstraction is the concept of hiding the complex implementation details and showing only the essential features of an object. It helps in reducing programming complexity and effort.

These concepts together make OOP a powerful and flexible programming paradigm, promoting code reusability, scalability, and maintainability.

About

Java Object Oriented Programming Methods

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages