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

What are the different forms of polymorphism??

8 Answers   Mantaq, NUC, PCS,


What is multiple inheritance?

9 Answers   TCS,


what is object slicing?

9 Answers   L&T, Wipro,


What is destructor oops?

0 Answers  


Why is object oriented programming so hard?

0 Answers  






How to create a comment page in C #??

2 Answers  


what is the difference between inter class and abstract class...?

0 Answers  


Is this job good for future? can do this job post grduate student?

0 Answers  


What is the difference between the c++ & java?

2 Answers  


What is the main difference between C++ and Java

11 Answers   TCS,


What is the significance of classes in oop?

0 Answers  


Which is the best institute in hyderabad for C/C++ and it also has fast track course structure.

13 Answers   Wipro,


Categories