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 send ford technologies placement paper 2 my mail id
Why multiple inheritance is not possible?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What is oops in simple words?
What are the benefits of oop?
What are constructors in oop?
What is the difference between a constructor and a destructor?
What is oops?what is its use in software engineering?
What is stream in oop?
What is meant by oops concept?
What is the difference between abstraction and polymorphism?
Prepare me a program for the animation of train
what is graphics
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
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