Practice question
3 marksState three differences between a constructor and a method.
ConstructorsMediumShort answer
Computer Science · Class 11 · ISC
Default, parameterised and copy constructors, and the difference between a constructor and a method.
5questions
Syllabus mapping: ISC syllabus (CISCE) (opens CISCE's website in a new tab)
5 questions
Practice question
3 marksState three differences between a constructor and a method.
ConstructorsMediumShort answer
Practice question
3 marksWhat is constructor overloading? Give one situation in which it is useful.
ConstructorsMediumShort answer
Practice question
2 marksWhat is a constructor? State three of its characteristics.
ConstructorsEasyShort answer
Practice question
3 marksDistinguish between a default constructor and a parameterised constructor, and state what a copy constructor does.
ConstructorsMediumShort answer
Practice question
3 marksWrite a class Rectangle with a parameterised constructor and a method to return its area.
ConstructorsMediumApplication based