Giter VIP home page Giter VIP logo

oops's Introduction

๐Ÿ”ฅ OOPS Concepts ๐Ÿ”ฅ

This repository contains code examples and explanations for various Object-Oriented Programming (OOPS) concepts.

Access Modifiers

Access modifiers in OOPS determine the visibility and accessibility of class members (variables and methods). They help in controlling the access to sensitive data and functionality within a class or across different classes and packages.

The following table summarizes the different access modifiers and their visibility:

Image |

Private Access Modifier

The private access modifier restricts the visibility of a member to only within the same class. It is used to encapsulate sensitive data or implementation details that should not be accessed or modified from outside the class.

Default Access Modifier

The default access modifier (also known as package-private or package-level access) allows access to members within the same package. It is used when you want to share members between classes within the same package but restrict access from classes outside the package.

Protected Access Modifier

The protected access modifier allows access to members within the same class, same package, and subclasses (even if they are in a different package). It is used when you want to provide access to subclasses for inheritance purposes while still restricting access from classes outside the package.

Public Access Modifier

The public access modifier allows unrestricted access to members from anywhere. It is used when you want to make a member accessible to all classes and packages.


Feel free to explore the code examples in this repository to understand how access modifiers can be used in different scenarios.

Happy coding! ๐Ÿ’› ๐Ÿ”ฅ

oops's People

Contributors

debapriyo007 avatar

Stargazers

Akash Nandi avatar  avatar  avatar 21 Savage avatar Jit Chakraborty avatar

Watchers

 avatar

Forkers

vishnudeotiwari

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.