what is data Abstraction? and give example
Answer Posted / apoorva
It is the process of hiding the complexity and inner
workings of a class, so that users dont have to know how it
operates.
For example- You dont have to know how a tv works if you
only wanted to view a picture.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What do you mean by a template?
Is c++ vector a linked list?
Why can’t you call invariants() as the first line of your constructor?
Write a program which employs Recursion
Where can I run c++ program?
What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero
What are containers in c++?
What are the advantages of pointers?
What parameter does the constructor to an ofstream object take?
What are the three forms of cin.get() and what are their differences?
What are member functions used in c++?
What are manipulators in c++ with example?
Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02
What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
What does the ios::ate argument do?