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
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(); }
Do you know about multiple inheritance?
What does enum stand for?
What is class in oop with example?
What is inheritance in simple words?
What is a function in oop?
If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?
Can enum be null?
What is polymorphism and example?
What is oops?what is its use in software engineering?
What is the oops and benefits of oops programming?
what's the basic's in dot net
Can destructor be overloaded?
What is encapsulation and abstraction? How are they implemented in C++?
Which type does string inherit from?