constructor and Destructors in C++ hindi

  Рет қаралды 44,055

Dr. Lalit Kishore Arora (Prof Computer Science)

Dr. Lalit Kishore Arora (Prof Computer Science)

Күн бұрын

#Constructor:
Constructor is an special member function of a class used to allocate the memory of objects.
Features:
Constructor has same name as class.
Constructor has no return type (even not void).
Constructor can initialize the member data of class.
Constructor called automatically when object is created.
#Destructors:
Destructor is another special member function used to release the memory occupied by the objects at the end of scope.
Features:
Destructor has same name as class with tiled (~) symbol.
Destructor has no return type (even not void).
Destructor called automatically when scope of object goes end.
Destructors called automatically in reverse order of constructors.
One class may have only one Destructor.

Пікірлер: 56
@SIMBU_GOLDEN
@SIMBU_GOLDEN Жыл бұрын
Clear the concept in very good manner thanks sir
@Cheeku_bhai1
@Cheeku_bhai1 5 ай бұрын
Extraordinary teaching 🙏
@AshishYadav-tj9cx
@AshishYadav-tj9cx 9 ай бұрын
Ur explanation manner is sir recpecatable ❤❤
@satakshimishra7534
@satakshimishra7534 3 жыл бұрын
Amazingly explained
@raunakjha4507
@raunakjha4507 2 жыл бұрын
c++ case sensitive nhi hai kya Yaha pe T ko reference diya copy karne ka aur t ke paas kaha se authority aa gayi copy krne ki?
@amrita.17
@amrita.17 2 жыл бұрын
You are excellent sir You have explained very nice 👏 And thank you so much sir
@girishchauhan1794
@girishchauhan1794 4 жыл бұрын
NICE TEACHING
@MrBest620
@MrBest620 Жыл бұрын
kia constructor m aik hi data type use krtay h ? constructor ko kin kin programs m use krtay
@arora751
@arora751 Жыл бұрын
No Dear, We can use any data types in constructors. there is no limitation of argument types and their number. We always use constructor on those classes which need to initialized directly from the objects when they created.
@justt_smile_19
@justt_smile_19 Жыл бұрын
Any BCA student here....🥺✨🤍
@vaibhavwakle9230
@vaibhavwakle9230 Жыл бұрын
Yes I'm here
@rajenchakma9198
@rajenchakma9198 Жыл бұрын
🖐️🖐️
@Mr_Raushan
@Mr_Raushan Жыл бұрын
Ya
@StrongBanday
@StrongBanday Жыл бұрын
BCA nahi but 12th zaroor h 😂
@Sgurau_1
@Sgurau_1 Жыл бұрын
Umm
@RutujaPatil-e8u
@RutujaPatil-e8u 3 ай бұрын
Thank you sir 🙏 ❤
@pronoyja1270
@pronoyja1270 Жыл бұрын
just wow
@SomilSrivastava2406
@SomilSrivastava2406 Жыл бұрын
❤😊❤😊😊❤😊❤
@justt_smile_19
@justt_smile_19 Жыл бұрын
Awesome sir💯💓
@sidrakhan1493
@sidrakhan1493 2 жыл бұрын
Excellent..
@sumitsawnoob1167
@sumitsawnoob1167 7 ай бұрын
You are pro sir👍😊
@sanjaysahare9899
@sanjaysahare9899 2 жыл бұрын
Thank you so much sir😊
@arora751
@arora751 2 жыл бұрын
Welcome
@siddhant2239
@siddhant2239 Жыл бұрын
Amazing sir 💯💯💯✨
@anjalijha6385
@anjalijha6385 Жыл бұрын
Dynamic constructor is a type of constructor or not?
@sidrakhan1493
@sidrakhan1493 2 жыл бұрын
Marvellous 🎉
@sohelmansuri2531
@sohelmansuri2531 2 жыл бұрын
Well explanation
@anantsahu2251
@anantsahu2251 2 жыл бұрын
Padhaye to accha ho but ye jo subscribe us pe bar bar uper neche kr rahe ho to bar bar dhayan usi side jata hai ok. So avoid it 🙂
@codewithsubham8939
@codewithsubham8939 2 жыл бұрын
Very........thank sir
@SomilSrivastava2406
@SomilSrivastava2406 Жыл бұрын
😊
@rushbooPrajapati
@rushbooPrajapati 5 ай бұрын
Me
@pratikdeshmukh7186
@pratikdeshmukh7186 Жыл бұрын
Thank you sir 😍
Constructors in C++ | Introduction to C++ Constructors [Hindi]
22:41
DataFlair Hindi
Рет қаралды 3,7 М.
Стойкость Фёдора поразила всех!
00:58
МИНУС БАЛЛ
Рет қаралды 7 МЛН
This mother's baby is too unreliable.
00:13
FUNNY XIAOTING 666
Рет қаралды 37 МЛН
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 72 МЛН
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 18 МЛН
Destructors in C++ | C++ Programming | In Hindi
19:21
codeitup
Рет қаралды 64 М.
8. Object Oriented Programming
41:44
MIT OpenCourseWare
Рет қаралды 624 М.
Copy Constructor in C++ | C++ Programming | In Hindi
20:23
codeitup
Рет қаралды 79 М.
Стойкость Фёдора поразила всех!
00:58
МИНУС БАЛЛ
Рет қаралды 7 МЛН