Examlex

Solved

A Class Can Have Friends That Are Functions as Well

question 23

True/False

A class can have friends that are functions as well as friend classes.


Definitions:

Ancestor Class

A class from which another class inherits, directly or indirectly. It's a part of the hierarchical inheritance in object-oriented programming.

Super Keyword

The super keyword in Java is used for calling the constructor of a superclass, or to access members of a superclass that have been hidden or overridden.

Base Class Constructor

A base class constructor is a method in the base class that is called when an instance of a class or a subclass is created, to initialize the object.

Extends Keyword

In programming languages like Java, it specifies that a class is deriving from a base class.

Related Questions