1. What happens when we try to compile the class definition in following code snippet? class Birds {}; class Peacock : protected Birds {};





Ask Your Doubts Here

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

Comments

Show Similar Question And Answers
QA->Average height of 10 students in a class is 150 cm. A boy of height 160 cm left the class and a boy of height 148 cm is admitted. Then what is the average height of the students in the class now?....
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->Compile (v)....
QA->Which Article states that “State shall try to promote cottage industries”?....
QA->“Try not to become a man of success but rather to become a man of value”?....
MCQ->What happens when we try to compile the class definition in following code snippet? class Birds {}; class Peacock : protected Birds {};....
MCQ->S1: Sun birds are among the smallest of Indian birds. P : Though they are functionally similar to the humming birds of the New World, they are totally unrelated. Q : They do eat insects too. R : They are also some of the most brilliantly coloured birds. S : sun birds feed on nectar mostly and helped in pollination. S6: Our common sun birds are the purple sun bird, the glossy black species and purple rumped sun bird, the yellow and maroon species. The Proper sequence should be:....
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->What will be the size of the object created by the following C#.NET code snippet? namespace IndiabixConsoleApplication { class Baseclass { private int i; protected int j; public int k; } class Derived: Baseclass { private int x; protected int y; public int z; } class MyProgram { static void Main (string[ ] args) { Derived d = new Derived(); } } }....
MCQ->Fact 1: All chickens are birds. Fact 2: Some chickens are hens. Fact 3: Female birds lay eggs. If the first three statements are facts, which of the following statements must also be a fact? I: All birds lay eggs. II: Some Hens are birds. III: Some chickens are not hens.....
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