In object-oriented programming, the object consist of both the data and the functions that operate on the data. In object-oriented programming, a data member plays the role of neither A nor B.
Objects are the product of abstract data types that has inside of it both data and function altogether.A data member often has different classes. They can be private or public.
Object-oriented programming (OOP) is simply known as a computer programming model that put together software design around data, or objects.
Learn more from
https://brainly.com/question/12342989
What is an IF statement used for?
The IF statement is a decision-making statement that guides a program to make decisions based on specified criteria. The IF statement executes one set of code if a specified condition is met (TRUE) or another set of code evaluates to FALSE.