Can a constructor return a value?

Answer Posted / nashiinformaticssolutions

It is possible for a constructor to return a value. A constructor cannot explicitly return a value; instead, it implicitly replaces the current instance of the class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an html tag?

829


When is dynamic checking necessary?

796


What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0

748


Which software is best for programming?

871


Differentiate between late binding and early binding.

959


What do c++ programmers do?

775


Explain the scope of resolution operator.

847


Explain the properties and principles of oop.

723


What are the various access specifiers in c++?

780


What does extern mean in a function declaration in c++?

921


Program to check whether a word is a sub-string or not of a string typed

1795


What is buffering in c++?

810


How many types of classes are there in c++?

793


How can you quickly find the number of elements stored in a static array?

845


Why should we use null or zero in a program?

786