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 ambiguity in inheritance?
How do you define a class in oop?
what is the drawback of classical methods in oops?
hi all..i want to know oops concepts clearly can any1 explain??
What do you mean by abstraction?
What is difference between class and object with example?
What is difference between abstraction and encapsulation?
What are oops functions?
What is constructor in oop?
How oops is better than procedural?
What is the difference between a constructor and a destructor?
#include
How do you achieve polymorphism?
What is difference between pop and oop?
What is overloading in oops?