Suppose sam is an object of a class named Person and suppose increaseAge() is a method for the class Person that takes one argument that is an integer. How do you write an invocation of the method increaseAge using sam as the calling object and using the argument 10? The method increaseAge will change the data in sam so that it simulates sam aging by 10 years
Answers
Answered by
2
karna brush kaam of sir a gaya hai
Step-by-step explanation:
m use than karna
Similar questions