Public class faculty extends employee {} Which object-oriented programming principles this set of Java code refers to ? Inheritance Encapsulation Polymorphism
Added by Alexis L.
Step 1
The code shows that the class `faculty` is extending the class `employee`, which indicates that `faculty` is a subclass of `employee`. Show more…
Show all steps
Your feedback will help us improve your experience
Paul Gabriel and 91 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Which feature of Object-Oriented Programming deals with code reusability? Select one: a) Encapsulation b) Inheritance c) Polymorphism d) Abstraction
Paul G.
'Question Which of the following not associated with object-oriented programming? Inheritance Resolution Encapsulation Polymorphism An object is often referred to as a(n) of the class from which was constructed: inheritance instance method parameter'
Akash M.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD