option
Questions
ayuda
daypo
search.php

ABAP 7.5 ABAP Object-Oriented Programming

COMMENTS STATISTICS RECORDS
TAKE THE TEST
Title of test:
ABAP 7.5 ABAP Object-Oriented Programming

Description:
ABAP Object-Oriented Programming

Creation Date: 2023/06/20

Category: Others

Number of questions: 22

Rating:(2)
Share the Test:
Nuevo ComentarioNuevo Comentario
New Comment
NO RECORDS
Content:

Which of the following statements are true? Select all that apply. Static attributes can be declared only in the private visibility section of the class. Static attributes are declared with the CLASS-DATA statement. A static attribute is the same across all instances of the class. There is only one static attribute across all instances of the class. Static attributes cannot be changed by an object.

Private components of the class cannot be addressed directly from outside the class except when the friendship concept applies. True. False.

Subclasses can access the private components of the parent class. True. False.

Subclasses inherit all the all the components of the parent class. True. False.

Public methods can access the private attributes of the same class. True. False.

Protected attributes can be accessed by methods of the class and its subclasses. True. False.

You cannot use the LIKE statement to define an attribute in a class. True. False.

The READ-ONLY addition for the attribute declaration can be used in the private and public visibility section. True. False.

The READ-ONLY attribute cannot be addressed outside the class. True. False.

Which of the following statements are correct? Select all that apply. Class methods assigned to public visibility section can be accessed outside the class using static component selector and the class name. Static methods can be defined in both public and private visibility section of the class. Only public methods can be addressed outside the class. You can call private methods within the public methods without reference to the object or class. None of the above.

The constructor method is called automatically when you create an instance of the class. True. False.

The class constructor method is called automatically when you access the class for the first time. True. False.

The constructor method is always defined in the private visibility section of the class. True. False.

You can call the constructor method directly. True. False.

Object or class events can trigger any number of handler methods. True. False.

In a local class, it is possible to declare an instance constructor in all visibility sections of the class. True. False.

Declaration of an internal table with header line can be used in a class implementation. True. False.

If several methods are registered to one event, they are called in the sequence in whitch they were registered. True. False.

To handle an event, a method must be defined as an event handler method and must be registered at runtime for the event. True. False.

Instance events can be triggered by an instance of the class, whereas static events can be triggered by the class itself. True. False.

You can trigger both static events an instance events from instance methods, whereas only static events can be triggered from static mehods. True. False.

The static construction (class constructor) is a special method in the class and is always named CLASS_CONTRUCTOR. True. False.

Report abuse