0% found this document useful (0 votes)
14 views1 page

OOP LAB Assignment-03

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views1 page

OOP LAB Assignment-03

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

OOP LAB

B. Tech. CSE 5th Sem


Session: January-June 2024
Faculty: Debashis Dev Misra
Online Java Compiler: https://www.jdoodle.com/online-java-compiler/

Assignment # 03: Constructors in Java


Questions:

1. Write a Java Program to demonstrate use of Java constructor.


2. Write a Java Program to show use of private no argument constructor.
3. Write a Java Program to show use of public no argument constructor.
4. Write a Java Program to show use of Parameterised Constructor.
5. Write a Java program to show use of Java default Constructor.
6. Write a Java program to demonstrate Constructor overloading.
7. Write a Java program to demonstrate Constructor overloading for calculating Volume.
8. Write a Java program to demonstrate Constructor Chaining.
9. Write a Java program to demonstrate Copy Constructor.

Instructions:
1. Write programs, compile and execute them during lab class.
2. After compiling and executing the Programs correctly, write te Program and Out in Lab Copy.
3. Submit Lab copy in next Lab class.

You might also like