1. If no constructor is there, then compiler assumes the class to have a default constructor with no arguments




Write Comment

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

Comments

Tags
Show Similar Question And Answers
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->An example of a compiler-compiler 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->In which area of the file the arguments for and against any measure can be taken?....
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->If no constructor is there, then compiler assumes the class to have a default constructor with no arguments....
MCQ-> In making decisions about important questions, it is desirable to be able to distinguish between ‘’strong’’ arguments and ‘’weak’’ arguments so far as they are related to the question. ‘’Strong’’ arguments must be both important and directly related to the question. ‘’Weak’’ arguments may not be directly related to the question and may be of minor importance or may be related to the trivial aspects of the question. Each question below is followed by two arguments numbered I and II. You have to decide which of the arguments is a ‘’strong’’ argument and which is a ‘’weak’’ arguments. Give your answer as---Should the opening of the new management educational institute be completely banned ? Arguments: I. Yes, There is no need to establish new institute, as there are already sufficient management institutes in the country. II. No, We need more managers with professional aptitude during the forthcoming years because the future scenario will be more competitive:....
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.....
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.....
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