Which of the following description is TRUE?     Inheritance allows us to define a class based on another class. Child classes receive all the features from the parent class but can NOT have their own additional features.     Abstraction means that a method in a parent class can have a number of different implementations in child classes.       An interface is a completely abstract class, which contains abstract properties, methods, and variables.      The private access modifier makes members accessible only from within the class and hides them from the outside.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 2RQ
icon
Related questions
Question

Question 30

Which of the following description is TRUE?

   

Inheritance allows us to define a class based on another class. Child classes receive all the features from the parent class but can NOT have their own additional features.

   

Abstraction means that a method in a parent class can have a number of different implementations in child classes.  

   

An interface is a completely abstract class, which contains abstract properties, methods, and variables. 

   

The private access modifier makes members accessible only from within the class and hides them from the outside.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Class
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr