Question
Explain the importance of a constructor in object-oriented programming. Differentiate between copy constructor and default constructor in C++ with the help of an example.
Answer :
Word Count : 156
___ _______ ___ ____ __________.
_______ ___ ________ __________ _______ _____ ______ _______ _________ __________ ___ _____.
_____ ____ ___ ______ _____.
____ ____ ____ ______ _________ ____ ___ ____ __________ ______.
_____ _______ ________ _____ ___ _______ _______ ______ _________ _______ ____.
_______ _________ ___ ____ ______ _____.
_____ ___ _______ ____ __________.
_________ ______ __________ ____ _________ _______ _________ ________ ______ ________.
____ _______ ______ ______ _____ _________ _________ ___.
_______ _______ _____ ____ ______ _____ ______.
_____ ______ __________ _______ _____ _________ ____ ________ ___ ____.
________ _____ _____ ___ ___ ________ ____ _____.
Skip in 10
OBJECT ORIENTED PROGRAMMING:-
- Object oriented programming is designed, which focus on data.
- It is bottom up approach.
- It supports inheritance, encapsulation, polymorphism and abstraction
- In object oriented programming, program are divided into entities and object.
- It is more secure and having data hiding.
- It can solve any complex program.
- More
_______ ___ ________ __________ _______ _____ ______ _______ _________ __________ ___ _____.
_____ ____ ___ ______ _____.
____ ____ ____ ______ _________ ____ ___ ____ __________ ______.
_____ _______ ________ _____ ___ _______ _______ ______ _________ _______ ____.
_______ _________ ___ ____ ______ _____.
_____ ___ _______ ____ __________.
_________ ______ __________ ____ _________ _______ _________ ________ ______ ________.
____ _______ ______ ______ _____ _________ _________ ___.
_______ _______ _____ ____ ______ _____ ______.
_____ ______ __________ _______ _____ _________ ____ ________ ___ ____.
________ _____ _____ ___ ___ ________ ____ _____.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.