1. Which of the following implicitly creates a default constructor when the programmer does not explicitly define at least one constructor for a class?





Write Comment

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

Comments

Tags
Show Similar Question And Answers
QA->Which country has banned Same-sex marriage after passing of a referendum to amend the constitution to define marriage as between one man and one woman?....
QA->There are 50 students in a class. In a class test 22 students get 25 marks each, 18 students get 30 marks each. Each of the remaining gets 16 marks. The average mark of the whole class is :....
QA->In a class of 20 students the average age is 16 years.If the age of the class teacher is added to that of students,the average age of the class becomes 17 years.What is the age of the teacher?....
QA->Which one of the following carburetors does not contain separate accelerating pump circuit?....
QA->In a class of 60 students, 55% are boys. The number of girls in the class is :....
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->Which of the following implicitly creates a default constructor when the programmer does not explicitly define at least one constructor for a class?....
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-> Study the following information carefully and answer the questions given below :P, Q, R, S, T and M are six students of a school, one each studies in Class 1-VI. Each of them has a favourite colour from red, black, blue, yellow, pink and green, not necessarily in the same order. Q likes black and does not study in Class IV or V. The one who studies in class IV does not like green. P studies in class II, M likes blue and does suidy in class IV. The one who likes ,t•Ilow studies in class VI. S likes pink itu I studies in class I. R does not study at class VI.In which class does R study ?
 ....
MCQ->Which of the following statements are correct? Data members ofa class are by default public. Data members of a class are by default private. Member functions of a class are by default public. A private function of a class can access a public function within the same class. Member function of a class are by default private.....
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
DMCA.com Protection Status Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions