Questions tagged [class-properties]

A class property, in some object-oriented programming languages, is a particular type of property that applies to a class rather than an instance of the class.

Class Property, in some object-oriented programming languages, is a special sort of class member, intermediate between a field (or data member) and a method.

Properties are read and written like fields, but property reads and writes are (usually) translated to get and set method calls.

See: - Properties (tag)

49 questions
0
votes
1 answer

Share values between to static function with our pass through arguments

I want to share a object between two static functions in a class with out pass through parameters. for example in my class have to static function ProfileRegistration() it get a object through parameter and I want to call another function Format()…
Ravindr
  • 186
  • 3
  • 15
0
votes
2 answers

Itererating over class properties in Matlab

I created a class based on a list of variables that comes from data. I made a function that will place all data inside an object of this class. As the list of variables grows, I keep having to adjust the class and the load function. I am trying to…
-1
votes
1 answer

Difference between super() and {parent_class_name} in case of update class property

I've wrote the following code to explain what I've found using super(). : With Parent.set_prop(): class Parent: parent_prop = None @classmethod def set_prop(cls, value): cls.parent_prop = value class Child1(Parent): …
Jordan Russev
  • 57
  • 1
  • 3
-1
votes
1 answer

Change class property value in method A and access updated value in method B

I'm using a custom PHP framework which is largely based on CodeIgniter. In one of my controller files, I've set a class property called $orderId. After the user has filled in the form and submitted, I'll do a DB insert, get the order no. and…
Mshah
  • 61
  • 6
1 2 3
4