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
#include
What is meant by multiple inheritance?
What is class and example?
What is solid in oops?
officer say me - i am offered to a smoking , then what can you say
How do you explain polymorphism?
How long to learn object oriented programming?
Why oops is important?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is encapsulation with example?
Why we use classes in oop?
How do you define social class?
Why is polymorphism used?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
Where You Can Use Interface in your Project