What are different types of arguments?



What are different types of arguments?..

Answer / Mohit

Arguments in OOP can be of several types: positional (passed in the order they are defined), keyword (passed with their names, which is useful when functions have parameters with the same name), default (have a predefined value if not provided during function call) and variable-length arguments (denoted with ellipsis (...) in many programming languages).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOAD Interview Questions

How can we call the base method without creating an instance?

1 Answers  


Why use oops?

1 Answers  


When will you use an interface and abstract class?

1 Answers  


What is the practical implementation of inner classes?

1 Answers  


Explain basic concepts of OOPS?

1 Answers  


Why is class hierarchies managed in object-oriented programming?

1 Answers  


What is the difference between new and override?

1 Answers  


Difference: Object Oriented Analysis (OOA) and Object Oriented Design (OOD)?

2 Answers   CSC, HCL,


Can you call the base class method without creating an instance?

1 Answers  


How to define an abstract class?

1 Answers  


Can an interface contain fields?

1 Answers  


Can different parts of a partial class inherit from different interfaces?

1 Answers  


Categories