what defines the type of data access that the class members make use of:

1 integer data types only

2 access specifier

3 abstract class

4 float data type only

plzz answer the above question iam unable to get it.....and if possible give me reason for it as well

You`ll have to rephrase your first and fourth point better, since it doesn`t make sense in its current form.
A class member can be a variable of any type - it doesn`t matter if it is of integer or float or char type. It can be another class too.

As for access specifiers, there are 3 of them:
private, public and protected.

-public members can be accessed by any function
- private members can be accessed only by functions of a given class (or its friends)
- protected members are important only when you`ll deal with class inheritance and want to control whether derived classes can have access to given members


Here`s a short explanatin link :
http://msdn.microsoft.com/en-us/library/zsc61976(VS.71).aspx

Abstract class is a class that contains at least one pure virtual function.
See more here :
http://msdn.microsoft.com/en-us/library/c8whxhf1(VS.80).aspx

Each member variable has (at least) keywords specified for it apart from name.
1. Data type - could be a basic type (int, float, char,...) or user defined type (vector, std::string, CString, MyClass,...).
2. Access specifier: public, protected, private.
Details are already given by wtf.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.