what is data abstraction with example.
Answer / vaishali
The concept of abstraction relates to the idea of hiding data that are not needed for presentation. The main idea behind data abstraction is to give a clear separation between properties of data type and the associated implementation details.
This separation is achieved in order that the properties of the abstract data type are visible to the user interface and the implementation details are hidden.
Thus, abstraction forms the basic platform for the creation of user-defined data types called objects.
Data abstraction is the process of refining data to its essential form.
Is This Answer Correct ? | 3 Yes | 0 No |
where is memory for struct allocated? where is memory for class-object allocated? I replied for struct in stack and for class-object in heap. THen he asked if class has struct member variable what happens.class on heap and what about struct in that class? couldnt ans :( :-?
What is memory leak and memory corruption?
What are two types of polymorphism?
what isthe difference between c structure and c++ class
#include <string.h> #include <stdio.h> #include <stdlib.h> #include<conio.h> void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort
What is the use of oops?
write a c++ code to overload + and - for a stack class such that + provides push and - provides pop operation
1 Answers College School Exams Tests, HCL, IBM, TCS,
What is a superclass in oop?
What is the important feature of inheritance?
Can anyone please explain runtime polymorphism with a real time example??at what ciscumstances we go for it??
WAP to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
Can we override main method?