How do you define a class in SAP ABAP?

Classes in ABAP Objects can be declared either globally or locally. You define global classes and interfaces in the Class Builder (Transaction SE24) in the ABAP Workbench . They are stored centrally in class pools in the class library in the Repository. All ABAP programs have access to these global classes.

Read more

What is a component C++?

The components of a class are data and functions ,which are further governed by the access specifier they belong to. The 3 types of access specifiers in C++ are: Private access specifier:the data and functions defined inside this specifier are private to the class,and cannot be accessed by the outside world.

Read more