Where from you can instantiate the class? You add the CREATE - ProProfs Discuss
Cancel
TopicsDown
Products Down
Follow Us:
FacebookTwitter
Advertisement

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: Sep 14, 2020

+ Answer
Request
Question menu
Vote up Vote down

2 Answers

A. Daniels

A. Daniels

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.

upvote downvote
Reply 

John Smith

John Smith

John Smith
John Smith

Answered Jul 19, 2017

From a friend class
From a child class
From the class itself
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

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