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

IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

0 Answers  


Why is abstraction needed?

0 Answers  


what is object oriented programming and procedure oriented programming?

3 Answers  


Where is pseudocode used?

0 Answers  


What is Object and Class? What are the differences between them?

5 Answers  






what is code for call by value and call by reference?

1 Answers  


20% of a 6 litre solution and 60% of 4 litre solution are mixed what the % of mixture of solution it is resulted into?

5 Answers   IonIdea,


what is pointers

7 Answers   Exilant,


Why u change company?

12 Answers   BOB Technologies,


why oops need in programming

7 Answers   TCS,


define a string class. overload the operator == to compare two strings

2 Answers   Birla, Ericsson, HCL, Infosys, Infotech, MCAS, Satyam,


What is the difference between an object and a class?

3 Answers  


Categories