Answer Posted / dipraj shahane
Constructor is special member function of class which having
same name as Class name and no return type. Main function of
Constructor is to initialize (give default values to member
variable of class object) object. Constructor gets invoke
when you create new object by following syntax.
ClassName objectName = new ClassName();
Is This Answer Correct ? | 22 Yes | 0 No |
Post New Answer View All Answers
why reinterpret cast is considered dangerous?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What is the difference between static polymorphism and dynamic polymorphism?
Is oop better than procedural?
What causes polymorphism?
What are the components of marker interface?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What is inheritance and how many types of inheritance?
What is the difference between abstraction and polymorphism?
can we make game by using c
What is basic concept of oop?
What is methods in oop?
Write a c++ program to display pass and fail for three student using static member function
• What are the desirable attributes for memory managment?
What is polymorphism explain its types?