Where from you can instantiate the class? You add the CREATE - ProProfs Discuss
Topics
Products
Follow Us:

Where from you can instantiate the class? You add the CREATE PROTECTED addition to a class definition.



A. From a friend class
B. From a child class
C. From a parent class
D. From any protected class
E. From the class itself

This question is part of ABAP - Simulado 04
Asked by Mathiaschroeder, Last updated: Feb 10, 2020

+ Answer
Request

2 Answers

A. Daniels

A. Daniels, Professor, San Diego

Answered Feb 13, 2019

The three correct answers to this question are A, B, and E. The CREATE PROTECTED addition can be added to a class definition, and can be done from a friend class (A), from a child class (B), and from the class itself (E). Instantiation is defined as the creation of an instance, or allocating memory for a new object of that type, and is used in class-based programming.

A class can only be instantiated from the subclasses or by the methods of the class itself. In instantiation, objects are created from classes by subroutines called constructors, and destroyed by destructors.

 

John Smith

John Smith

Answered Jul 19, 2017

From a friend class
From a child class
From the class itself
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.