6. Which class cannot be extended? A. final class B. public class C. abstract class D. None of the above 7. Which cannot be inherited from a base class in Java programming A. constructor B. final method C. A and B C. None of above 8. To prevent a class to be inherited/extended, the class should be A. abstract class 8. final class C. final and abstract both D. None of above 9. Multiple inheritance means, A. one class inheriting from more super classes B. more classes inheriting from one super class C. more classes inheriting from more super classes D. None of the above 10. which the following cannot be overridden A. Constructors. B. A method declared final C. A method declared static D. All the above 11. Members of a class specified as . .. are accessible only to methods of that class. A. protected B. final C public D. private

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question
choose the correct answer in java
6. Which class cannot be extended?
A. final class
B. public class
C. abstract class
D. None of the above
7. Which cannot be inherited from a base class in Java programming
A. constructor
B. final method
C. A and B
C. None of above
8. To prevent a class to be inherited / extended, the class should be
A. abstract class
B. final class
C. final and abstract both
D. None of above
9. Multiple inheritance means,
A. one class inheriting from more super classes
B. more classes inheriting from one super class
C. more classes inheriting from more super classes
D. None of the above
10. which the following cannot be overridden
A. Constructors.
B. A method declared final
C. A method declared static
D. All the above
11. Members of a class specified as . are accessible only to methods of that
class.
A. protected
B. final
Cpublic
D. private
12. In object-oriented programming, the process by which one object acquires all
the properties and behaviors of another object is called
A. Encapsulation
B. Polymorphism
C. Inheritance
D. overloading
Transcribed Image Text:6. Which class cannot be extended? A. final class B. public class C. abstract class D. None of the above 7. Which cannot be inherited from a base class in Java programming A. constructor B. final method C. A and B C. None of above 8. To prevent a class to be inherited / extended, the class should be A. abstract class B. final class C. final and abstract both D. None of above 9. Multiple inheritance means, A. one class inheriting from more super classes B. more classes inheriting from one super class C. more classes inheriting from more super classes D. None of the above 10. which the following cannot be overridden A. Constructors. B. A method declared final C. A method declared static D. All the above 11. Members of a class specified as . are accessible only to methods of that class. A. protected B. final Cpublic D. private 12. In object-oriented programming, the process by which one object acquires all the properties and behaviors of another object is called A. Encapsulation B. Polymorphism C. Inheritance D. overloading
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Software Development
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage