Professional Documents
Culture Documents
OOPS PDF NO #3 by Group 3 Modifyed
OOPS PDF NO #3 by Group 3 Modifyed
12.what is a method?
Ans- A method is a member that implements a computation or action
that can be performed by an object or class.
13.How many parameters are there what are they?
Ans- There are four kinds of parameters:
• out
• ref
• params
• value
14.What is a Value parameter and what is the use of it?
Ans- If a parameter does not have any modifier, it is the value
parameter by default. When you use the value parameter, the actual
value is passed to the function.
22.what is inheritance?
Ans-Inheritance is a form of software reusability in which classes are
created by reusing the data and behaviors of an existing class with new
capabilities.
40.what is namespaces?
Ans- A namespace defines a declarative region that provides a way to
keep one set of names separate from another.
Thus, names declared in one namespace will not conflict with the
same names declared in another.
49.What is Enumeration?
Ans-An enumeration is a set of named integer constants.
An enumerated type is declared using the enum keyword