{"id":18538557,"url":"https://github.com/shaikahmadnawaz/oop","last_synced_at":"2025-05-15T02:12:29.531Z","repository":{"id":113666420,"uuid":"578445560","full_name":"shaikahmadnawaz/oop","owner":"shaikahmadnawaz","description":"Object Oriented Programming - Java ✨","archived":false,"fork":false,"pushed_at":"2023-01-08T11:36:04.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T07:45:28.978Z","etag":null,"topics":["java","oop","oop-principles","oops-in-java","packages"],"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/shaikahmadnawaz.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}},"created_at":"2022-12-15T04:22:01.000Z","updated_at":"2023-03-07T03:37:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"c41e8353-861b-40c3-9677-e7147c484747","html_url":"https://github.com/shaikahmadnawaz/oop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaikahmadnawaz%2Foop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaikahmadnawaz%2Foop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaikahmadnawaz%2Foop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaikahmadnawaz%2Foop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaikahmadnawaz","download_url":"https://codeload.github.com/shaikahmadnawaz/oop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254259439,"owners_count":22040821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["java","oop","oop-principles","oops-in-java","packages"],"created_at":"2024-11-06T19:44:25.373Z","updated_at":"2025-05-15T02:12:29.512Z","avatar_url":"https://github.com/shaikahmadnawaz.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OOP\n\n**Class** - The class is the template of an object.  \nclass - logical construct\n\n**Object** - The object is an instance(physical thing) of a class.  \nobject - physical reality\n\n- Objects are stored in the heap memory.\n- Variables are stored in the stack memory.\n\n**new** - Dynamically allocates memory at run time and return reference to it.\n\n**constructor** - Special function, that runs when you create an object and it allocates some variables.\n\n**this** - Refers to the current object in a method or constructor\n\n**package** - A package in Java is used to group related classes. Think of it as a folder in a file directory. We use packages to avoid name conflicts, and to write a better maintainable code.\n\n**static** - In static we'll create only one instance of that static member that's shared across all instances of the class.\n\n- When a member is declared as static it can be acessed before any of the object of class is being created and without referencing to that object we can access the variables.\n- static variables are independent on objects.\n- A static method can access only a static data.\n- You cannot use this keyword inside the static method.\n\n**singleton** - a singleton class is a class that can have only one object (an instance of the class) at a time. After the first time, if we try to instantiate the Singleton class, the new variable also points to the first instance created.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaikahmadnawaz%2Foop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaikahmadnawaz%2Foop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaikahmadnawaz%2Foop/lists"}