![]() |
| Home | Tech FAQ | Interview Questions | Placement Papers | Tech Articles | Learn | Freelance Projects | Online Testing | Geeks Talk | Job Postings | Knowledge Base | Site Search | Add/Ask Question |
![]() Related Questions Latest Answer : Samik your explanation is nice.Easy for the beginner to understand. ... Latest Answer : These are access specifiers for class data members and member methods.Public: The data members and methods having public as access specifier can be accessed by the class objects created outside the class.Protected: The data members and methods declared ... Latest Answer : A friend function can access all private protected and public data of a class. A class has to declare a function or another class as a friend. Also the friendship is one way. Class A is friend of class B does not mean that class B is friend of class A. ... Read Answers (1) | Asked by : vasanthakumar Tags : OOPS If I am declaring a private member in abstract class, although it will not be accessible in derived classes and can not be accessible by instantiating the abstract class. Then what is the optimal use of declaring private member in an abstract class. Tags : Abstract How could I, in C++ declare a class point. The class point has two private data members x and y of type float. The class point has a parameterized constructor to initialize both the data members i.e. x and y. The class point has a member function display() that display the value of x and y. Create two objects p1 and p2 with your desired data and display the values of x and y of p1 and p2. Now create a third object p3 by using the expression p3=p1+p2 and display the values of x and y of p3. Read Answers (1) | Asked by : attique Why are private fields assigned with public properties?Is this not same as declaring the field Public? View Question | Asked by : purba
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||