Ask questions which are clear, concise and easy to understand.
Ask QuestionPosted by Anushka Trivedi 5 years, 2 months ago
- 0 answers
Posted by Monalisa Panda 5 years, 2 months ago
- 0 answers
Posted by Amandeep Singh 5 years, 2 months ago
- 0 answers
Posted by Praseetha R 5 years, 2 months ago
- 0 answers
Posted by Sachin Puruseth 5 years, 2 months ago
- 0 answers
Posted by Prateek Gopala 5 years, 2 months ago
- 0 answers
Posted by Kunal Kumar 3 years, 5 months ago
- 1 answers
Sia ? 3 years, 5 months ago
Constructor |
Destructor |
|
Purpose |
Constructor is used to initialize the instance of a class. |
Destructor destroys the objects when they are no longer needed. |
When Called |
Constructor is Called when new instance of a class is created. |
Destructor is called when instance of a class is deleted or released. |
Memory Management |
Constructor allocates the memory. |
Destructor releases the memory. |
Arguments |
Constructors can have arguments. |
Destructor can not have any arguments. |
Overloading |
Overloading of constructor is possible. |
Overloading of Destructor is not possible. |
Name |
Constructor has the same name as class name. |
Destructor also has the same name as class name but with (~) tiled operator. |
Syntex |
ClassName(Arguments) |
~ ClassName() |
Posted by Remkima Colney 5 years, 2 months ago
- 0 answers
Posted by Gopi Yadav 5 years, 2 months ago
- 0 answers
Posted by Pardeep Kumar 5 years, 2 months ago
- 0 answers
Posted by Hardik Prasad 5 years, 2 months ago
- 0 answers
Posted by Vishakha Dhiman 5 years, 2 months ago
- 1 answers
Sia ? 5 years, 2 months ago
The method flush() flushes the internal buffer, like stdio's fflush. This may be a no-op on some file-like objects. Python automatically flushes the files when closing them. But you may want to flush the data before closing any file.
Posted by Sharon Shaji 5 years, 2 months ago
- 0 answers
Posted by Charu Latha 5 years, 2 months ago
- 0 answers
Posted by Ajʌy Choprʌ 5 years, 2 months ago
- 1 answers
Sia ? 5 years, 2 months ago
Output
<pre> 5.999,5.999,5.999,5.999 </pre>Explanation
The reason for this is x gives the value stored in the variable x. *(&x) gives the data value stored in the address &x i.e., the data value of x. Since y points to x (..y=&x), *y gives the value of x. And because z has the same address as that of y, *z also gives the value of x i.e., 5.999.
Posted by Bushra Begam 5 years, 2 months ago
- 0 answers
Posted by Abhishek Bhatt 5 years, 2 months ago
- 2 answers
Aman Kumar 5 years, 2 months ago
Posted by Manvi Bhadauria 5 years, 2 months ago
- 0 answers
Posted by Shubhamkumar Mishra 5 years, 2 months ago
- 0 answers
Posted by Bhimsen Naik 5 years, 2 months ago
- 1 answers
Mahima Yadav 5 years, 2 months ago
Posted by Vishva Tyagi 5 years, 2 months ago
- 1 answers
Posted by Saksham Gupta 5 years, 2 months ago
- 2 answers
Posted by Renju Renjuz 5 years, 2 months ago
- 2 answers
Suprit Raj 5 years, 2 months ago
Posted by Ankita Sinha 5 years, 2 months ago
- 2 answers
Priya Dharshini ? 5 years, 2 months ago
Ishan G❤ 5 years, 2 months ago
Posted by Ankita Sinha 5 years, 2 months ago
- 2 answers
Priya Dharshini ? 5 years, 2 months ago
Posted by Devansh Srivastava 5 years, 2 months ago
- 3 answers
Rohit Sharma 5 years, 2 months ago
Posted by Rohitrohit Rohit 5 years, 2 months ago
- 0 answers
myCBSEguide
Trusted by 1 Crore+ Students
Test Generator
Create papers online. It's FREE.
CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app
Riya Singh 4 years, 11 months ago
1Thank You