Answer Posted / prashanth
public,protected,private are access modifiers where public
is used for acess the methods and variables to unlimited
extent.
private:is used to access the variables upto the enclosing
region
protected:and it is limited to class itself or classes that
are derived
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is encapsulation example?
what are the realtime excercises in C++?
What is the purpose of polymorphism?
What is class and object in oops?
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.
What is the point of oop?
What are the types of abstraction?
What is abstraction in oops?
Templates mean
What is a class oop?
what is the drawback of classical methods in oops?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
Can a destructor be called directly?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What causes polymorphism?