GeekInterview.com
   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

GeekInterview.com  >  Tech FAQs  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 212 of 255    Print  
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.

  
Total Answers and Comments: 2 Last Update: March 27, 2006     Asked by: ambrishg 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 20, 2006 04:57:53   #1  
Krishna        

RE: If I am declaring a private member in abstract cla...
It can be accessed with the help of friend function
 
Is this answer useful? Yes | No
March 27, 2006 05:08:41   #2  
Yashwant S pinge        

RE: If I am declaring a private member in abstract cla...
Hello,1) You can access the private data of abstract class by using the public function of abstract class . That means you can create the object of derived class and using this object , you can access the private data by invoking the public function of abstract or base class.2) Using friend function.
 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : Hi friends,   There are 5 kind of storage classes  auto - : like int extern-: used by other class or programm static -: retain the value through out the executionof the programm register-: First memory storage.Secquence ...

Latest Answer : Class is not a Object simillarly Object cannot be a class. the relationship between this two is that the Object is an instance of the Class.If Car is a class then running car is the Object [it might comprise of other Objects also]. Simillarly if Heart ...

Tags : Abstract

Latest Answer :          Storage classes in c are :   Auto ,Extern,Static,Register,Volatile. ...

Latest Answer : class is the collection of same type of objects .whereas object is an instance of a class.ex :humanbeing is a class whose objects can be man ,woman etc. ...

Latest Answer : 1)class is the advanced and the secured form of structure.2)Both are the abstract and user defined data types.3)By default the the behavior of the class contents is private and the structure is public.4)In C++ the structure is the class with public behavior.5)In ...

Latest Answer : Samik your explanation is nice.Easy for the beginner to understand. ...

Latest Answer : Virtual Base Class: Used in context of multiple inheritance in C++. If you plan to derive two classes from a class, and further derive one class from the two classes in the second level, you need to declare the uppermost base class as 'virtual' in the ...

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 : Generic classes are those which describe the functionality without being bound to any data type. These classes can be used to generate definitions of classes which are bound to a particular data type. A good example is an Array class. Functionality of ...


 Sponsored Links

 
Related Articles

ODP.NET - Fundamental ODP.NET Classes to Retrieve Data

ODP NET Fundamental ODP NET Classes to Retrieve Data To retrieve data from an Oracle database using ODP NET we need to work with a few of the ODP NET classes At this point we will discuss the most fundamental classes available in ODP NET for retrieving data mosgoogle The following is the list of fun
 

Microsoft AJAX Library - C# and JavaScript Classes

C and JavaScript Classes For the purpose of demonstrating a few more OOP related concepts we ll use another class Our new class is named Table and it has two public fields rows columns and one method getCellCount The getCellCount method should return the number of rows multiplied by the number of co
 

Microsoft AJAX Library - JavaScript Classes

JavaScript Classes Not only can JavaScript functions contain other functions but they can also be instantiated This makes JavaScript functions a good candidate for implementing the concept of a class from traditional object oriented programming This is very helpful feature indeed because JavaScript
 

OOPS Tutorials

Object oriented programming OOP is a computer science term used to characterize a programming language that began development in the 1960’ s The term object oriented programming’ was originally coined by Xerox PARC to designate a computer application that describes the methodol
 

C++ Pure Virtual Function and Base Class

C Pure Virtual Function and Virtual Base Class In this C tutorial you will learn about pure virtual function declaration of pure virtual function and virtual base class virtual base class and how to implement a virtual base class explained with examples mosgoogle center What is Pure Virtual Function
 

C++ Storage Classes

C Storage Classes In this C tutorial you will learn about storage classes types of storage class variables Automatic External and Static explained with examples mosgoogle center Storage classes In the context of scope of variables in functions exists the important concept of storage class What is St
 

How to Access C++ Class Members

How to Access C Class Members In this C tutorial you will learn how to access Class members dot operator or class member access operator difference between struct and class and  scope resolution operator mosgoogle center It is possible to access the class members after a class is defined an
 

C++ Objects and Classes

C Objects and Classes An Overview about Objects and Classes In object oriented programming language C the data and functions procedures to manipulate the data are bundled together as a self contained unit called an object A class is an extended concept similar to that of structure in C programming l
 

UML Elements : Class Diagram

UML Elements UML 2 0 is comprised of a total of 13 diagrams If you wish to understand these diagrams they should be organized based on a hierarchy For UML a diagram is an element which must define which things should be modeled in a system mosgoogle center Introduction to Class Diagram In this arti
 

Making Ajax Accessible

Making Ajax Accessible There are a number of myths that surround the topic of accessibility with Ajax It is very important for both developers and users to be able to separate myths from facts In this article I will go over some common myths that surround Ajax and accessibility and I will take the t
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape