Java Constructors | Default, Parameterised, Copy Constructor & this Keyword | OOPs | ShashCode

Publié le: 01 janvier 2026
sur la chaîne: ShashCode
1,129
32

Lecture Resources
https://github.com/Tiwarishashwat/Jav...

In this lecture, we dive deep into Constructors in Java, one of the most important Object-Oriented Programming concepts.

This is Lecture 2 of Java OOP Basics, where everything is explained from scratch with simple examples.

Topics covered in this video:

What is a Constructor in Java?

Rules of Constructor

Default Constructor (Compiler Provided)

Parameterized Constructor

Copy Constructor (User Defined)

this keyword in Java

this() – calling one constructor from another

Object Copying in Java

Reference Copy

Field-wise (Manual) Copy

Copy Constructor

This lecture will help you clearly understand how objects are initialized and copied in Java, which is very important for:

Java fundamentals

OOP interviews

Placement preparation

Writing clean & bug-free code

This video is part of my Java + DSA course by ShashCode, designed especially for beginners and placement-focused students.

👉 Watch till the end to avoid common mistakes related to constructors and this keyword.

Timestamp:
0:00 - Default Constructors
1:57 - Parameterised Constructor
4:29 - Copy Constructor
7:57 - This Method
11:31 - Outro


Sur cette page du site, vous pouvez voir la vidéo en ligne Java Constructors | Default, Parameterised, Copy Constructor & this Keyword | OOPs | ShashCode durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur ShashCode 01 janvier 2026, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,129 fois et il a aimé 32 téléspectateurs. Bon visionnage!