11. Which member of the parent class can never be accessed by inherited classes? Public member function All above can be accessed Protected member function Private member function 12. How to access a...


just mention the Anwsers. Explanation is not needed. Thank you


11. Which member of the parent class can never be accessed by inherited classes?<br>Public member function<br>All above can be accessed<br>Protected member function<br>Private member function<br>12. How to access a private member function of a class? -<br>calling private member function within class<br>calling private member function with public object of class outside of the class<br>calling private member function with private object of class outside of the class<br>calling private member function with class address<br>13. Which among the following is true?<br>The private members can be accessed by public members of the class<br>The private members can be accessed only by the private members of the class<br>The private members can't be accessed by the protected members of the class<br>The private members can't be accessed by public members of the class<br>14. If a child class object is created, which constructor is called second?<br>Child class constructor<br>Parent class constructor is called after child class constructor<br>Parent class constructor<br>Depends on how we call the object<br>

Extracted text: 11. Which member of the parent class can never be accessed by inherited classes? Public member function All above can be accessed Protected member function Private member function 12. How to access a private member function of a class? - calling private member function within class calling private member function with public object of class outside of the class calling private member function with private object of class outside of the class calling private member function with class address 13. Which among the following is true? The private members can be accessed by public members of the class The private members can be accessed only by the private members of the class The private members can't be accessed by the protected members of the class The private members can't be accessed by public members of the class 14. If a child class object is created, which constructor is called second? Child class constructor Parent class constructor is called after child class constructor Parent class constructor Depends on how we call the object
6. Which option is true about the final keyword?<br>A final class can be extended<br>A final class can extend other classes<br>A final class cannot extend other classes<br>A final method can be override in child class<br>7. Modifiers public and private are equivalent when used<br>With member function of a class<br>With data members or member functions of abstract class<br>Within the definition of the inner or outer classes<br>With data members of a class<br>8. We are not allowed to create object of<br>Abstract Class & Interface both<br>Concrete Class<br>Abstract class<br>Interface<br>9. Which one is true about anonymous classes?<br>Anonymous class cannot be used for event handling<br>Anonymous class has no name<br>Anonymous class should have a name<br>Object of anonymous class cannot be created<br>10. Which function of the listener object is executed when a button is clicked/pressed in a JFrame?<br>itemStateChanged<br>mouseClicked<br>actionPerformed<br>addActionListner<br>

Extracted text: 6. Which option is true about the final keyword? A final class can be extended A final class can extend other classes A final class cannot extend other classes A final method can be override in child class 7. Modifiers public and private are equivalent when used With member function of a class With data members or member functions of abstract class Within the definition of the inner or outer classes With data members of a class 8. We are not allowed to create object of Abstract Class & Interface both Concrete Class Abstract class Interface 9. Which one is true about anonymous classes? Anonymous class cannot be used for event handling Anonymous class has no name Anonymous class should have a name Object of anonymous class cannot be created 10. Which function of the listener object is executed when a button is clicked/pressed in a JFrame? itemStateChanged mouseClicked actionPerformed addActionListner
Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here