Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Public attributes#

Sumit Rawal answered on May 17, 2023 Popularity 3/10 Helpfulness 1/10

Contents


More Related Answers

  • c# attribute
  • C# Property
  • c# property attribute
  • Public properties can be created via Instance public fields
  • Public properties can be created via Static public fields
  • How are properties defined? Where?
  • Properties#
  • Private attributes#
  • Defining the Properties of a Class#

  • Public attributes#

    0

    Public attributes are those that can be accessed inside the class and outside the class.

    Technically in Python, all methods and properties in a class are publicly available by default. If we want to suggest that a method should not be used publicly, we have to declare it as private explicitly.

    Below is an example to implement public attributes:

    Popularity 3/10 Helpfulness 1/10 Language python
    Source: Grepper
    Tags: public python
    Link to this answer
    Share Copy Link
    Contributed on May 17 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.