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


Please Help Members By Posting Answers For Below Questions

What is ambiguity in inheritance?

707


How do you define a class in oop?

730


what is the drawback of classical methods in oops?

3000


hi all..i want to know oops concepts clearly can any1 explain??

1758


What do you mean by abstraction?

695






What is difference between class and object with example?

674


What is difference between abstraction and encapsulation?

691


What are oops functions?

667


What is constructor in oop?

691


How oops is better than procedural?

675


What is the difference between a constructor and a destructor?

707


#include #include #include #include void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort

2258


How do you achieve polymorphism?

717


What is difference between pop and oop?

701


What is overloading in oops?

703