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 polymorphism and types?
Advantage and disadvantage of routing in telecom sector
What is polymorphism used for?
How to use CMutex, CSemaphore in VC++ MFC
How to call a non virtual function in the derived class by using base class pointer
Whats is abstraction in oops?
What is the oops and benefits of oops programming?
What is oops and why we use oops?
What is the main feature of oop?
What is byval and byref? What are differences between them?
what are the realtime excercises in C++?
What is the difference between procedural programming and oops?
What is an advantage of polymorphism?
What is the purpose of enum?
Is this job good for future? can do this job post grduate student?