constructor and Destructors in C++ hindi
Vložit
- čas přidán 22. 05. 2020
- #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.
Any BCA student here....🥺✨🤍
Yes I'm here
🖐️🖐️
Ya
BCA nahi but 12th zaroor h 😂
Umm
Extraordinary teaching 🙏
Amazingly explained
Clear the concept in very good manner thanks sir
Ur explanation manner is sir recpecatable ❤❤
NICE TEACHING
Marvellous 🎉
Excellent..
Well explanation
Awesome sir💯💓
You are excellent sir
You have explained very nice 👏
And thank you so much sir
Amazing sir 💯💯💯✨
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?
Thank you sir 😍
😊
You are pro sir👍😊
just wow
❤😊❤😊😊❤😊❤
Very........thank sir
Thank you so much sir😊
Welcome
kia constructor m aik hi data type use krtay h ? constructor ko kin kin programs m use krtay
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.
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 🙂
Dynamic constructor is a type of constructor or not?
Me
Any BCA STUDENT HERE 😢