For the following class definition, what can be done to prot…

For the following class definition, what can be done to protect an attribute from being directly read or changed via dot notation by code outside the class that is using the class?  Select the best answer.class Date ( ):         def __init__ (self, month, day, year):                 self.month = month                 self.day = day                 self.year = year  

Review the definition below then check all the following sta…

Review the definition below then check all the following statements that are true regarding the code: class Cart (object):      cartNo = 1     def __init__(self, cust_name):              self.cartNo = Cart.cartNo                    Cart.cartNo += 1                    self.cust_name = cust_name                    self.cart = [ ]        def addGroc (self, item):                   self.cart.append(item)          def showCart (self):                    for i in self.cart:                              print(i)          def __str__ (self):                return ‘Cart# ‘ + str(self.cartNo) + ‘\ncustomer ‘ + self.cust_name