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 / sidhartha

1) Data members and member functions.
2) Wrapping up of data into a single logical unit is known
as data encapsulation.
3) By using public specifier in the class.
4) private specifier is the default visibility mode.
5) (a)It is a bottom up approach.
(b)Emphasis is on data.
(c)large programs can be divided into objects.
(d)objects have their relevant own data.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does it mean when someone says I oop?

591


Why is polymorphism needed?

607


Is data hiding and abstraction same?

577


What is persistence in oop?

677


What is polymorphism and why is it important?

562






What is the difference between inheritance and polymorphism?

596


What is class and object in oops?

615


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2017


What is a null tree?

632


Whats oop mean?

601


What is destructor in oop?

631


How do you define a class in oop?

636


What is the purpose of enum?

587


Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.

2584


how to get the oracle certification? send me the answer

1676