True False 1 Init Method Called Whenever Set Data Attributes Given Object Using Setter Met Q37124312

True and False and why

1. __init__ method is called whenever you set the dataattributes of a given object using the setter methods.

2. You cannot change the value of private data attribute outsidethe class using the getter method.

3. You have to add setter methods even when data attributes aredeclared as public.

4. An accessor method of a class reads the value of the datamember of the class and then returns its value.

5. You can instantiate an object before creating a classtemplate.

6. There is no need for setter and getter methods when dataattributes are defined as public

7. Data hiding principle means that data

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.