Answer Posted / rlv

Abstraction is categorized as Data Abstraction and Procedural Abstraction. In data abstraction, the way the data are stored e.g. the structure or arrangement of data is hidden.

Procedural abstraction on the other hand, hides the details on how the function/procedure/method works. You must only know the inputs and the expected outputs, much like a black-box. The two ideas combined serve as one of the important concept in OOP called Encapsulation.

As an example, when you create a class for StudentGrades, the variables and their structure for representing grades is hidden by using the private keyword, you only provide methods to access and manipulate this data.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of prototyping?

568


If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?

642


Can notepad ++ run c++?

548


Can a constructor be private?

584


Explain operator overloading.

604






Explain the virtual inheritance in c++.

600


What is the difference between the indirection operator and the address of oper-ator?

608


How does c++ sort work?

568


Is c better than c++?

619


What does std mean in c++?

583


What is the difference between containment and delegation?

705


Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;

1507


What is the basic of c++?

604


Do class method definitions?

589


What is the use of endl in c++?

594