Computer Science, asked by vijayna6022, 1 year ago

If a programmer defines a class,defines a parametrized constructor inside it and tries to create an object

Answers

Answered by Anonymous
2

Answer:

Explanation:

In class-based object-oriented programming, a constructor (abbreviation: ctor) is a special type ... Constructors, which concretely use a single class to create objects and return a new ... When an object is declared in a parameterized constructor, the initial values have to be passed as arguments to the constructor function.

Answered by Anonymous
0

Explanation:

If the object is create without arguments and only parameterized constructors are used, compiler will give an error as there is no default constructor defined. And some constructor must be called so as to create an object in memory.

Similar questions