Abstraction is the process of exhibiting only the essential
characteristics of an object depending on programmers
view.It is complement to encapsulation.
an abstract data type (ADT) is an idealization of a set of
values, along with a set of functions and relations on these
values that together constitute a type. Simple examples
include Integers, Complexes, Sets, Lists, and so on.
It refers we can represents essential features without
including background details and explanations
ex:
index of text book.
class School
{
void sixthclass();
void seventhclass();
void tenthclass();
}
in oops the data abstraction is defined as represent
essential features without including background details or
implementation details.class use the concept of data
abstraction.
It is a mechanism to create new data types that include
several related operations to be performed on it and
attributes to suit the require ments of an application.In C++
class are written to prepare ADTs(Abstract data types)
class Foo {
int x;
public:
Foo(int I);
};
If a class does not have a copy constructor explicitly
defined one will be implicitly defined for it. Referring to
the sample code above, which one of the following
declarations is the implicitly created copy constructor?
a) Foo(Foo *f);
b) Foo(Foo &f);
c) Foo(const Foo *f);
d) Foo(const Foo &f);
e) Foo(int);