Computer Applications
Name two ways of creating objects in a constructor.
Java Constructors
13 Likes
Answer
The object can be created in two ways:
- Created by compiler
- Created by programmer
Answered By
3 Likes
Related Questions
Explain two features of a constructor.
Distinguish between parameterised constructor and non-parameterised constructor.
Differentiate between the following statements:
abc p = new abc();
abc p = new abc(5,7,9);Fill in the blanks to design a class:
class __________{
int l, b;
Area(int __________, int __________) {
l = __________;
b = __________;
}
}