1. What is the most restrictive access modifier that will allow members of one class to have access to members of another class in the same package?






Ask Your Doubts Here

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

Comments

  • By: guest on 02 Jun 2017 01.25 am
    default access is the "package oriented" access modifier. Option A and C are wrong because public and protected are less restrictive. Option B and D are wrong because abstract and synchronized are not access modifiers.
Show Similar Question And Answers
QA->“One caste, One religion and One God for man of the same blood and form, there is no difference animals of the same caste alone procreate Viewed thus all humanity belong to one caste”- In which book of Sree Narayana Guru these words can be seen?....
QA->‘I have been touring different parts of the world. During these travels, I have had the good fortune to come into contact with several saints and maharshis. But I have frankly to admit that I have never come across one who is spiritually greater than Swami Sree Narayana Guru of Kerala” Whose words are these?....
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->“During my travels throughout the world, I have had the good fortune to come in contact with several saints and maharishis... But I have frankly to admit that I have never come across one who is spiritually greater than Swami Narayana Guru or a person who is at par with him in spiritual attainment.” Who paid tribute in the above words after visiting Sree Narayana Guru?....
MCQ->What is the most restrictive access modifier that will allow members of one class to have access to members of another class in the same package?....
MCQ->You want a class to have access to members of another class in the same package. Which is the most restrictive access that accomplishes this objective?....
MCQ->Which of the following statements are correct about the structure declaration given below? struct Book { private String name; protected int totalpages; public Single price; public void Showdata() { Console.WriteLine(name + " " + totalpages + " " + price); } Book() { name = " "; totalpages = 0; price = 0.0f; } } Book b = new Book(); We cannot declare the access modifier of totalpages as protected. We cannot declare the access modifier of name as private. We cannot define a zero-argument constructor inside a structure. We cannot declare the access modifier of price as public. We can define a Showdata() method inside a structure.....
MCQ->You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective?....
MCQ->Which of the following statements are correct about objects of a user-defined class called Sample? All objects of Sample class will always have exactly same data. Objects of Sample class may have same or different data. Whether objects of Sample class will have same or different data depends upon a Project Setting made in Visual Studio.NET. Conceptually, each object of Sample class will have instance data and instance member functions of the Sample class. All objects of Sample class will share one copy of member functions.....
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