Which of the invocations should be used instead of XXX?

Posted by: Pdfprep Category: PCAP-31-02 Tags: , ,

The following class definition is given. We want the show () method to invoke the get () method, and then output the value the get () method returns.

Which of the invocations should be used instead of XXX?

A . print (get(self))
B . print (self.get())
C . print (get())
D . print (self.get (val))

Answer: A

Leave a Reply

Your email address will not be published.