|
|
|
|
- Reason
- Correction
- Example
- Declaring a class method
Error 202: The method already has an access attribute (public, protected or private)
You are using a class method. Several access levels have been assigned to this method. A method can only have a single access level. Reminder: a method can have one of the 3 following access levels: - Private: access allowed inside the code of the class.
- Protected: access allowed inside the code of the class and derived classes.
- Public: unrestricted access (default access mode).
Modify your code in order to have a single access level. Declaring a class method Code triggering the error PROTECTED PUBLIC METHOD CalculateStockMarket(Share) Possible correction Specify a single access level for this method. PUBLIC METHOD CalculateStockMarket(Share)
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|