what is data Abstraction? and give example
Answer Posted / namitha
Data abstraction refers to, providing only essential
features by hiding its background details.
example:
class result
{
int marks;
float percentage;
char name[20];
void input();
void output();
}
main()
{
bank b1;
b1.input();
b1.output();
}
in the above example, b1 is an object calling input and
output member functions, but that code is invisible to the
object b1.
| Is This Answer Correct ? | 263 Yes | 58 No |
Post New Answer View All Answers
Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300
What is pure virtual function? Or what is abstract class?
What is constructor and destructor in c++?
Is c++ a good beginners programming language?
Explain what you mean by a pointer.
What is an overflow error?
How much maximum can you allocate in a single call to malloc()?
What is the C-style character string?
Which c++ operator cannot overload?
What is prototype in c++ with example?
Explain rethrowing exceptions with an example?
Mention the ways in which parameterized can be invoked.
What are manipulators in c++ with example?
Can you please explain the difference between overloading and overriding?
Can you please explain the difference between using macro and inline functions?