Ask questions which are clear, concise and easy to understand.
Ask QuestionPosted by Anushka Trivedi 6 years, 3 months ago
- 0 answers
Posted by Monalisa Panda 6 years, 3 months ago
- 0 answers
Posted by Amandeep Singh 6 years, 3 months ago
- 0 answers
Posted by Praseetha R 6 years, 3 months ago
- 0 answers
Posted by Sachin Puruseth 6 years, 3 months ago
- 0 answers
Posted by Prateek Gopala 6 years, 3 months ago
- 0 answers
Posted by Kunal Kumar 4 years, 6 months ago
- 1 answers
Sia ? 4 years, 6 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 6 years, 3 months ago
- 0 answers
Posted by Gopi Yadav 6 years, 3 months ago
- 0 answers
Posted by Pardeep Kumar 6 years, 3 months ago
- 0 answers
Posted by Hardik Prasad 6 years, 3 months ago
- 0 answers
Posted by Vishakha Dhiman 6 years, 3 months ago
- 1 answers
Sia ? 6 years, 3 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 6 years, 3 months ago
- 0 answers
Posted by Charu Latha 6 years, 3 months ago
- 0 answers
Posted by Ajʌy Choprʌ 6 years, 3 months ago
- 1 answers
Sia ? 6 years, 3 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 6 years, 3 months ago
- 0 answers
Posted by Abhishek Bhatt 6 years, 3 months ago
- 2 answers
Aman Kumar 6 years, 3 months ago
Posted by Manvi Bhadauria 6 years, 3 months ago
- 0 answers
Posted by Shubhamkumar Mishra 6 years, 3 months ago
- 0 answers
Posted by Bhimsen Naik 6 years, 3 months ago
- 1 answers
Mahima Yadav 6 years, 3 months ago
Posted by Vishva Tyagi 6 years, 3 months ago
- 1 answers
Posted by Saksham Gupta 6 years, 3 months ago
- 2 answers
Posted by Renju Renjuz 6 years, 3 months ago
- 2 answers
Suprit Raj 6 years, 3 months ago
Posted by Ankita Sinha 6 years, 3 months ago
- 2 answers
Priya Dharshini ? 6 years, 3 months ago
Ishan G❤ 6 years, 3 months ago
Posted by Ankita Sinha 6 years, 3 months ago
- 2 answers
Priya Dharshini ? 6 years, 3 months ago
Posted by Devansh Srivastava 6 years, 3 months ago
- 3 answers
Rohit Sharma 6 years, 3 months ago
Posted by Rohitrohit Rohit 6 years, 3 months ago
- 0 answers
Posted by Pratham Bhawnani 6 years, 3 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
myCBSEguide