answersLogoWhite

0

Parameterized constructors (or more simply "constructors") allow you to create a new instance of a class while simultaneously passing arguments to the new instance. Constructors are essential for object oriented programming since they allow user-defined construction code to be passed parameters by the creator of the instance. They simplify client code by allowing a new object instance to be created and initialized in a single expression.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is the difference between default constructor and parameterized constructor?

A default constructor is one that has no parameters (C++ also calls constructors with all default parameters a default constructor), while a parameterized constructor is one that has at least one parameter without a default value. Default constructors can be provided by the compiler if no other constructors are defined for that class or any class the class inherits from, while parameterized constructors must always be defined by the developer.


Is RDBMS is an OS?

No, but some RDBMS's are available on multiples OS's (Oracle, for example: Windows, unices, bs2000... ).


What are the application of RDBMS?

what is rdbms and its application


Is foxpro a rdbms?

yes it is a rdbms


Setw is a parameterized manipulator?

ture


How are parametrized constructor different from non parametrized constructor?

Parameterised constructors accept arguments while non parameterised constructors do not. Example : class A { A(){ // non parameterised ... } A(int b){ // parameterised ... } }


What is a default parameterized constructor?

There is no such thing as a default parameterized constructor. The default constructor is always the 'no-arg' constructor and does not take any parameters or arguments as input


What are the different types of management systems?

1. relational database management system(RDBMS) 2. object Rdbms. 1. relational database management system(RDBMS) 2. object Rdbms.


How many constructors can c have?

A class can have any number of constructors, as far as they are having different parameters or different number of parameters. For example, a class A can have following constructors & even more: A() -the default constructor A(A objectA) -the copy constructor A(int p) A(int p1, int p2) A(int[] p1, float p2) A(double p1, double p2, int p3) A(A objA, int[] p) A(B objB)


Is MySQL DBMS or RDBMS?

AnswerMySQL, like most modern Database Management Systems is based on the relational model. So it is a RDBMS (Relational Database Management System).


What are the subject topic for rdbms?

RDBMS is all about Relational Data Base Management System...


For what purpose constructors are used in Java?

Constructors are used to create the instance of a class.