what is data Abstraction? and give example
Answer Posted / abhay shukla
ata abstraction is a process of representing the essential
features without including implementation 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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
Program to check whether a word is a sub-string or not of a string typed
How do you find out if a linked-list has an end? (I.e. The list is not a cycle)
Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.
What is the difference between the indirection operator and the address of oper-ator?
There are 100 students in a class. The management keep information in two tables. Those two tables are given like Roll no Name Age 001 ABC 15 002 XYZ 14 and Roll No Subject Marks 001 Math 75 001 Physics 55 002 Math 68 001 Hindi 69 They want the information like this Roll No Name Hindi Physics Math Total 001 ABC 69 55 75 199 002 XYZ 68 74 84 226 And Roll No Suject Highest 001 Math 98 007 Physics 84 021 Hindi 74 All 275 All information is kept in structure in main memory. You have to find last two tables.
Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes
What is buffer and example?
Define the operators that can be used with a pointer.
Which programming language should I learn first?
Which operations are permitted on pointers?
How do you define/declare constants in c++?
What are the advantages of using friend classes?
What is the most powerful coding language?
Explain the concept of friend function in c++?
How the programmer of a class should decide whether to declare member function or a friend function?