Question Set

1. How many times can a constructor be called during lifetime of the object?






Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

Show Similar Question And Answers
QA->Father is aged three times more than his son Anil. After 8 years, he would be two and a half times of Anil"s age. After further 8 years, how many times would he be of Anil"s age?....
QA->Father is aged three times more than his son Ram . After 8 years, he would be two and a half times of Ram"s age. After further 8 years, how many times would he be of Ram"s age?....
QA->If 16 men or 20 women can do a piece of work in 25 days. In how many days can 28 men and 15 women can do the same work?....
QA->P can do a work in the same time in which Q and R together can do it. If P and Q work together, the work can be completed in 10 days. R alone needs 50 days to complete the same work. then Q alone can do it in....
QA->When an object travels around another object it is known as?....
MCQ->Which three statements are true? The default constructor initialises method variables. The default constructor has the same access as its class. The default constructor invokes the no-arg constructor of the superclass. If a class lacks a no-arg constructor, the compiler always creates a default constructor. The compiler creates a default constructor only when there are no other constructors for the class.....
MCQ->How many times can a constructor be called during lifetime of the object?....
MCQ->Which of the following statements are correct about the C#.NET code snippet given below? namespace IndiabixConsoleApplication { class index { protected int count; public index() { count = 0; } } class index1: index { public void increment() { count = count +1; } } class MyProgram { static void Main(string[] args) { index1 i = new index1(); i.increment(); } } } count should be declared as public if it is to become available in the inheritance chain. count should be declared as protected if it is to become available in the inheritance chain. While constructing an object referred to by i firstly constructor of index class will be called followed by constructor of index1 class. Constructor of index class does not get inherited in index1 class. count should be declared as Friend if it is to become available in the inheritance chain.....
MCQ->Which of the following statements are correct about the C#.NET code snippet given below? sample c; c = new sample(); It will create an object called sample. It will create a nameless object of the type sample. It will create an object of the type sample on the stack. It will create a reference c on the stack and an object of the type sample on the heap. It will create an object of the type sample either on the heap or on the stack depending on the size of the object.....
MCQ->Only 50% of the members (both male and female0 in health club E have lifetime membership. If the number of females in health club E who have lifetime membership is 44, what percent of male members in health club E have lifetime membership ?....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution