Q. Which of the following is a valid method reference to an instance method?

  • (A) ClassName::methodName
  • (B) objectName::methodName
  • (C) new::methodName
  • (D) Class::new
πŸ’¬ Discuss
βœ… Correct Answer: (B) objectName::methodName
Explanation: `objectName::methodName` references an instance method.
Explanation by: Mr. Dubey
`objectName::methodName` references an instance method.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
58
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate