Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 (1 point) The class that does the inheriting is referred to as parent class or base class or super class True False Question

image text in transcribedimage text in transcribedimage text in transcribed

Question 1 (1 point) The class that does the inheriting is referred to as parent class or base class or super class True False Question 2 (1 point) Methods inherited from the base/super class can be overridden. This means changing their implementation; the original source code from the base class is ignored and new code takes its place. Abstract methods must be overridden. True False Question 3 (1 point) When inheriting a class, our constructors must call the base class constructor, so that it can initialize its member variables. If not done explicitly, the compiler will place a call to the parameterless/default base class constructor True lle Question 4 (1 point) Protected defines class members which are not visible to users of the class (those who initialize and use it), but are visible to all inheriting classes (descendants) True False Question 5 (1 point) An interface can only declare methods, variables and constants. True False Question 6 (1 point) The class that implements a certain interface must implement all methods in it. The only exception is when the class is abstract. True False Question 7 (1 point) Polymorphism can bear strong resemblance to abstraction, but it is mostly related to overriding methods in derived classes, in order to change their original behavior inherited from the parent class. True False Question 8(1 point) Each class with at least one abstract method must be abstract. However, the opposite is not true. It is possible to define a class as an abstract one, even when there are no abstract methods in it. True False Question 9 (1 point Abstract classes and interfaces cannot be instantiated. True False Question 10 (1 point) A subclass should be created when we expect the class to change /complement/alter some of the parent class' functionality. True False

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions