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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

1983


Do you know about multiple inheritance?

639


What does enum stand for?

613


What is class in oop with example?

619


What is inheritance in simple words?

625






What is a function in oop?

630


If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

944


Can enum be null?

587


What is polymorphism and example?

592


What is oops?what is its use in software engineering?

557


What is the oops and benefits of oops programming?

553


what's the basic's in dot net

1738


Can destructor be overloaded?

597


What is encapsulation and abstraction? How are they implemented in C++?

637


Which type does string inherit from?

616