Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Can we change the Super class attribute scope in Sub class

Former Member
0 Kudos

Hi.

I created a super class. In that i have 4 attributes. That attributes are PUBLIC.

I created a sub class. In that i got all super class attributes. I want to change that attributes as a Private. Is it possible.

If it is possible.Give me an Example with code or Pseudo code.

Regards.

Krishna.

2 REPLIES 2

Former Member
0 Kudos

Hi Krishna,

I don't think it is possible.

Regards

Abhijeet

narin_nandivada3
Active Contributor
0 Kudos

Hi Krishna,

It is not possible... If you declare the Attributes again in Subclass of the same name as that of Super class

then the way of accessing them would be different from that of attributes in the main class.

Hope this would help you

Good luck

Narin