1.what are two type of classe members called?
2.what is data hiding and data encapsulation?
3.how do you make a class member visible aouside its class?
4.what is the default visibility of a class data member?
5.what are the advantages of oop over the structured
programing?

Answers were Sorted based on User's Feedback



1.what are two type of classe members called? 2.what is data hiding and data encapsulation? 3.how ..

Answer / pushkar raj

1. Private and public
2. Delcaring members i.e. data or functions as a private
will not allow them outside the class and calling
themselves through another member of class is data hiding
and encapsulation
3. if class member is declared as public one then it is
accesible outsile the class. And thorugh its object we can
access public members and through them private members.
4. By default the class data members are private
5. It has bottom up approach
Data is hidden
Inheritance is used for reusability concept
polymorphism

Is This Answer Correct ?    10 Yes 2 No

1.what are two type of classe members called? 2.what is data hiding and data encapsulation? 3.how ..

Answer / monika

Two types of data members are- Data members and Member
functions.

Is This Answer Correct ?    7 Yes 5 No

1.what are two type of classe members called? 2.what is data hiding and data encapsulation? 3.how ..

Answer / lilly

1. data members and member functions.
2.data hiding is where data is hidden from outside access
other than class members.
data encapsulation is where data members and member
functions are binded together into a single entity called
class which inturn does data hiding.
3.by changing the visibility mode as public.
4.the visibility of a class data member will be private by
default.
5.a.data is controlling access over the code in oop whereas
in structured programming code is acting on data.
b.data is hidden from outside access by encapsulating it
into a single entity whereas no data security in SP.
c.emphasis is on data in oop whereas in SP emphasis is on
functions.
d.Objects play the main role in oop where as no objects in
SP.
e.Code can be reused in oop by inheritance feature whereas
in Sp we cant reuse the code.
f.large n complex programs can be easily maintained whereas
in SP it becomes complex when it reaches 100,000 lines of
code.
g.we can use global and local variables easily in oop coz
of class entity but it is very complex and confusing in
Structured programming.

Is This Answer Correct ?    1 Yes 0 No

1.what are two type of classe members called? 2.what is data hiding and data encapsulation? 3.how ..

Answer / karthick

1.two types of class members are declaration and definition.
2.covering all entities like function,variables, data type
within a single entity called as class is known as data
encapsulation.
Data hiding refers to the privacy of informations that are
seen within the class that is not visible to the functions
outside the class.
3.By creating objects for the class they can be accessed.
4.The default visibility is always private
5.

Is This Answer Correct ?    4 Yes 4 No

1.what are two type of classe members called? 2.what is data hiding and data encapsulation? 3.how ..

Answer / sidhartha

1) Data members and member functions.
2) Wrapping up of data into a single logical unit is known
as data encapsulation.
3) By using public specifier in the class.
4) private specifier is the default visibility mode.
5) (a)It is a bottom up approach.
(b)Emphasis is on data.
(c)large programs can be divided into objects.
(d)objects have their relevant own data.

Is This Answer Correct ?    0 Yes 0 No

1.what are two type of classe members called? 2.what is data hiding and data encapsulation? 3.how ..

Answer / n.shyam sunder rao

1.Static & Non-static
2.covering all entities like function,variables, data type
within a single entity called as class is known as data
encapsulation.
Data hiding refers to the privacy of information that are
seen within the class that is not visible to the functions
outside the class.
3.By using access specifier public.
4.default scope, that is same class,subclass with in the
same package,other classes within the same package.
5.i).Overloading functions.
ii).Code Re usability.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More OOPS Interview Questions

Can we call a base class method without creating instance?

6 Answers  


different types of castings

3 Answers   Siemens,


create a c++ program that will ask 10 numbers and display their sum using array.

1 Answers  


any one please tell me the purpose of operator overloading

0 Answers   Amazon,


What is encapsulation?

17 Answers   TCS,






Plese get me a perfect C++ program for railway/airway reservation with all details.

0 Answers   ITM,


Write pseudo code for push in a stack?

2 Answers   emc2,


What does enum stand for?

0 Answers  


Which keyword is written to use a variable declared in one class in the other class?

5 Answers   TCS,


I hv a same function name,arguments in both base class and dervied class, but the return type is different. Can we call this as a function overloading? Explain?

3 Answers  


What does and I oop and sksksk mean?

0 Answers  


What is abstract class in oops?

0 Answers  


Categories