{"id":50840031,"url":"https://github.com/vimalyad/object_oriented_programming","last_synced_at":"2026-06-14T06:06:27.746Z","repository":{"id":316251240,"uuid":"1062042696","full_name":"vimalyad/object_oriented_programming","owner":"vimalyad","description":"A comprehensive guide and code repository demonstrating the fundamental concepts of Object-Oriented Programming in Java through practical examples and detailed implementations.","archived":false,"fork":false,"pushed_at":"2025-09-23T18:13:38.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-10T18:38:02.133Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vimalyad.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-22T18:18:27.000Z","updated_at":"2025-11-08T22:08:22.000Z","dependencies_parsed_at":"2025-09-23T15:38:03.856Z","dependency_job_id":null,"html_url":"https://github.com/vimalyad/object_oriented_programming","commit_stats":null,"previous_names":["yamisukehiro2907/oops","vimalyad/object_oriented_programming"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/vimalyad/object_oriented_programming","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimalyad%2Fobject_oriented_programming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimalyad%2Fobject_oriented_programming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimalyad%2Fobject_oriented_programming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimalyad%2Fobject_oriented_programming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vimalyad","download_url":"https://codeload.github.com/vimalyad/object_oriented_programming/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimalyad%2Fobject_oriented_programming/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34310811,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-14T06:06:26.970Z","updated_at":"2026-06-14T06:06:27.733Z","avatar_url":"https://github.com/vimalyad.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Object-Oriented Programming (OOP) in Java\n\nThis repository serves as a comprehensive guide and code resource for understanding the fundamental concepts of\nObject-Oriented Programming (OOP) in Java. Each concept is demonstrated with clear, simple code examples to help\nsolidify your understanding.\n\n---\n\n## Table of Contents\n\n- [Introduction to OOP](#introduction-to-oop)\n- [Classes and Objects](#classes-and-objects)\n- [Pillars of OOP](#pillars-of-oop)\n    - [Encapsulation](#encapsulation)\n    - [Inheritance](#inheritance)\n    - [Polymorphism](#polymorphism)\n    - [Abstraction](#abstraction)\n- [Other Key Concepts](#other-key-concepts)\n    - [Interfaces](#interfaces)\n    - [Packages](#packages)\n    - [Access Modifiers](#access-modifiers)\n    - [Generics](#generics)\n\n---\n\n## Introduction to OOP\n\nObject-Oriented Programming is a programming paradigm based on the concept of \"objects,\" which can contain data and\ncode. This approach aims to model real-world entities and their interactions, making code more organized, reusable, and\neasier to maintain.\n\n---\n\n## Classes and Objects\n\nA **class** is a blueprint for creating objects. It defines the state (fields) and behavior (methods) that an object\nwill have. An **object** is an instance of a class, created from that blueprint.\n\n- **Code Example** :\n  [https://github.com/yamiSukehiro2907/OOPS/tree/master/Introduction](https://github.com/yamiSukehiro2907/OOPS/tree/master/Introduction/src)\n\n---\n\n## Pillars of OOP\n\n### Encapsulation\n\n**Encapsulation** is the practice of bundling data (fields) and the methods that operate on that data into a single\nunit (a class). It also involves restricting direct access to some of an object's components, which is typically\nachieved using **access modifiers** like `private`.\n\n- **Code Example**:\n  [https://github.com/yamiSukehiro2907/OOPS/tree/master/Encapsulation](https://github.com/yamiSukehiro2907/OOPS/tree/master/Encapsulation/src)\n\n### Inheritance\n\n**Inheritance** is a mechanism where a new class (`subclass`) inherits fields and methods from an existing class (\n`superclass`). This allows for code reusability and establishing a clear hierarchy between classes.\n\n- **Code Example**:\n  [https://github.com/yamiSukehiro2907/OOPS/tree/master/Inheritance](https://github.com/yamiSukehiro2907/OOPS/tree/master/Inheritance/src)\n\n### Polymorphism\n\n**Polymorphism** means \"many forms.\" It allows objects of different classes to be treated as objects of a common\nsuperclass. The most common form is **Dynamic Method Dispatch**, where the specific method to be executed is determined\nat runtime.\n\n- **Code Example**:\n  [https://github.com/yamiSukehiro2907/OOPS/tree/master/PolyMorphism](https://github.com/yamiSukehiro2907/OOPS/tree/master/PolyMorphism/src)\n\n### Abstraction\n\n**Abstraction** involves hiding complex implementation details and showing only the essential features of an object.\nThis is typically achieved using **abstract classes** and **interfaces**.\n\n- **Code Example**:\n  [https://github.com/yamiSukehiro2907/OOPS/tree/master/Abstraction](https://github.com/yamiSukehiro2907/OOPS/tree/master/Abstraction/src)\n\n---\n\n## Other Key Concepts\n\n### Interfaces\n\nAn **interface** is a blueprint of a class. It can contain method signatures but no method bodies. A class can implement\nmultiple interfaces, providing a form of multiple inheritance.\n\n- **Code Example**: `[Coming soon...]`\n\n### Packages\n\n**Packages** are a way of organizing related classes and interfaces. They help to prevent naming conflicts and control\naccess to classes.\n\n- **Code Example**:\n  [https://github.com/yamiSukehiro2907/OOPS/tree/master/Packages](https://github.com/yamiSukehiro2907/OOPS/tree/master/Packages/src)\n\n### Access Modifiers\n\n**Access modifiers** control the visibility and accessibility of classes, fields, constructors, and methods. The four\ntypes are `public`, `protected`, `default` (no keyword), and `private`.\n\n- **Code Example**:\n  [https://github.com/yamiSukehiro2907/OOPS/tree/master/Access%20Control](https://github.com/yamiSukehiro2907/OOPS/tree/master/Access%20Control/src)\n\n### Generics\n\n**Generics** allow you to create classes, interfaces, and methods that operate on different types of data without type\nsafety issues. They help to provide stronger type checks at compile time.\n\n- **Code Example**: `[Coming soon...]`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvimalyad%2Fobject_oriented_programming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvimalyad%2Fobject_oriented_programming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvimalyad%2Fobject_oriented_programming/lists"}