Question

What is constructor? Define the class Account with all the basic attributes of a saving bank account. Define the default constructor, parameterized constructor, member function display_ balance () for displaying the balance of account use appropriate access control specifies in this program.

18 Oct 2017
Answer :
Word Count : 237

Constructor

  • Constructor is a special member function having same name of class.
  • It cannot return a value even void.
  • It can be parameterized.
  • It can be overloaded.
  • It is called automatically when create an object.

Default constructor: - A constructor with arguments or all default arguments is called default constructor. If a constructor is not declare in class then compiler define

____ _________ _______ ____ __________ ______ ____ ___.
__________ ____ ___ ____ ________ _______ _________ __________ __________ __________.
_______ _____ _____ ___ ___ ____.
________ _________ ______ _______ _________ ______.
_____ ___ ___ _________ ____ ______.
__________ _________ _____ _______ _________.
_________ ______ __________ ________ ____ _______ _____ ________ __________ ________ __________ ____.
__________ ___ ___ ____ _________ ____ _________ ______ ____ _________.
__________ ____ ______ _________ _________ ____ __________ ________ _________ __________ ___.
_________ ____ _________ __________ __________ ___ _____ __________.
_______ _______ ______ ____ _____ ______ ________ ____.
________ _________ _____ ______ ___ ___.
___ ___ ___ ________ _______.
_______ ____ ________ ________ _____ _____ ______ _________ ________ _____.
___ ____ __________ ___ _________.
_____ ______ ____ ___ _______ ________ _______.
___ ___ ________ ________ ________ _______.
_____ ___ _____ _______ ___ _______ ____ _______.
_____ _______ ___ _____ _________ __________ ____.
________ _______ ___ ________ ______.
____ _______ _____ ________ ____ ___ __________.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU BCS 31 2016 - What is constructor? Define the class Account with all the basic attri | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→