aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Programming Fundamentals
  • Can a private method of a super class be declared in a su...
Multiple choice technology programming languages

Can a private method of a super class be declared in a sub class?

  1. yes

  2. no

  3. cannot say

  4. none

Reveal answer Fill a bubble to check yourself
A Correct answer

Keep practicing — related questions

  • A sub class can access private members of the super class.
  • Can a subclass access the private values of the super class
  • When a method is declared as private, it can be accessed from its
  • A subclass can access the private member variables of its own superclass
  • Superclass methods with this level of access cannot be called from subclasses
  • Given: 1. class Super { 2. private int a; 3. protected Super(int a) { this.a = a; } 4. } ... 11. class Sub ...
  • For a subclass outside the package, the protected member can be accessed through ?
  • Which two, independently, will allow Sub to compile? 1. class Super { 2. private int a; 3. protected Super(...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Object-Oriented Programming (2239 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy