cancel
Showing results for 
Search instead for 
Did you mean: 

Why data type used for private attribute should be defined in class-relevant local definition?

raffinkira
Participant
0 Kudos

Hi experts,

Just as desribed in the title, why it's no defined in the normal local test definition/implementation?

Regards, Ming

Sandra_Rossi
Active Contributor
0 Kudos
Sorry to say that, but who asked this "silly" question?
Sandra_Rossi
Active Contributor
0 Kudos
By "silly", I wanted to say that the question is asking "why is sky not blue" although sky is blue. Private attributes can be defined in any class, even test classes (although I don't understand why you need to define types in test classes, I think of situations where I could possibly need types for defining a short list of columns to compare but instead I'm using constructor expressions).
View Entire Topic
2233667
Explorer
0 Kudos

Hi,

   Generally, custom classes are created as local definition and implementation is done separately. So, we do the data declaration in the definition part of the class.