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 are the components of marker interface?
What is polymorphism give a real life example?
What is encapsulation process?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is difference between polymorphism and inheritance?
What is the full form of oops?
hi all..i want to know oops concepts clearly can any1 explain??
#include
What is a class and object?
Can a destructor be called directly?
Can we define a class within the interface?
• What are the desirable attributes for memory managment?
What is the real time example of inheritance?
What is stream in oop?
Why is destructor used?