Question
In object-oriented programming, when defining an
interface method, which of the following statements is true regarding method parameters?Solution
In object-oriented programming, an interface defines a contract that specifies a set of methods that implementing classes must provide. Interface methods can indeed have parameters, which are used to pass information to these methods when they are called. However, while an interface method specifies what parameters are required, it is the responsibility of the classes implementing the interface to provide the actual method bodies and handle these parameters appropriately. This means that while the interface outlines the method signatures, including their parameters, the concrete implementations in the classes are required to define how these parameters are used and processed. This approach ensures that any class implementing the interface adheres to the expected method signature and behavior, providing consistency across different implementations.
Which Indian cities have been accredited as Wetland Cities under the Ramsar Convention?
What technology was used for the first time in India's mountainous railway tunneling in the Rishikesh-Karnaprayag project?
Employees’ Provident Fund Organisation has released its latest payroll data regarding the status of the number of subscriber been increased or decreas...
The 2nd Global Buddhist Summit will be held on 24–25 January 2026 at which venue?Â
Who is the author of the book 'Revolutionaries: The Other Story of How India Won Its Freedom'?
What is the primary focus of the 'Wrestle for Glory' program launched by IndusInd Bank? Â
Adani Ports receives NCLT approval to acquire ______ in Gangavaram Port.
Which exercise includes India, Sri Lanka, and Maldives to enhance trilateral maritime cooperation?
What is the maximum cap on First Loss Default Guarantee (FLDG) under RBI’s co-lending rules?
How many ODI centuries has Virat Kohli scored as of the first ODI against South Africa in Ranchi in 2025?