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 252 of 255    Print  
Why are private fields assigned with public properties?Is this not same as declaring the field Public?

  
Total Answers and Comments: 0 Last Update: November 16, 2007     Asked by: purba 
  
 Sponsored Links



 

No answers are posted for this question yet.
Be the first to answer it!


 Related Questions

Latest Answer : Yes . e.g. scanf ("%10s", str ); only 10 chars would be taken in ...

Latest Answer : When the storage is at premium , it may be necessary to pack several objects into single machine word , one common use is a set of single bit flags in application like compiler symbol tables. A bit field or field for short is a set of adjacent bits with ...

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.
Read Answers (2) | Asked by : ambrishg
Tags : Abstract

If we create a array of structures(structure must contain string field) we cannot store the data ny getting input from keyboard.Why?
Read Answers (1) | Asked by : venkatesh

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



 
Related Articles

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
 

JavaScript Windows Object Properties Part II

JavaScript Windows Object Properties Part II In this JavaScript tutorial you will learn about screenX screenY screenLeft and screenTop top length frames opener parent and window property of Window object along with syntax and examples mosgoogle center screenX This property screenX returns the x coor
 

JavaScript Windows Object Properties Part I

JavaScript Windows Object Properties Part I In this JavaScript tutorial you will learn about Windows Object properties namely personalbar statusbar scrollbar toolbar property of Window object pageXOffset pageYOffset innerwidth innerheight outerwidth and outerheight mosgoogle center personalbar Prope
 

JavaScript History Object Properties and Methods

JavaScript History Object  Properties and Methods In this JavaScript tutorial you will learn about history object properties and methods length current next previous properties back forward and go methods along with syntax and examples mosgoogle center The history property has the return v
 

JavaScript Location Object Properties

JavaScript Location Object Properties In this JavaScript Tutorial you will learn about Properties of Location Object hash host hostname pathname port protocol and search property mosgoogle center The Location object contains information about the current URL This representation is a string that den
 

JavaScript Document Object Properties

JavaScript Document Object Properties In this JavaScript tutorial you will learn about Document Object Properties viz formName forms images lastModified layers linkColor links plugins referrer title URL and vlinkColor mosgoogle center formName Using the formName property any form in the document can
 

JavaScript Event Object Properties and Methods

JavaScript Event Object Properties and Methods In this JavaScript tutorial you will learn about event object properties and methods like keycode layer offset modifiers page reason returnValue screen srcElement target srcFilter and type mosgoogle center keycode The keycode property of event object is
 

The Inheritance Concept In OOPs

The Inheritance Concept In OOPs In object oriented programming objects will be characterised by classes It is possible to learn a lot about an object based on the class it belongs to Even if you are not familiar with the name Maybach If I told you it is a car you would immediately know that it has f
 

Understanding The Message Concept In OOPs

Understanding The Message Concept In OOPs To understand object oriented programming you will need to become familiar with messages As the name implies a message is a process in which software objects will communicate with one another Because of this having one object is not enough mosgoogle An objec
 

Basic concepts of OOPS and Structure of C++ program

Basic concepts of OOPS and Structure of C program In this tutorial you will learn about Objects Classes Inheritance Data Abstraction Data Encapsulation Polymorphism Overloading Reusability Before starting to learn C it is essential that one must have a basic knowledge of the concepts of Object orie
 

Sponsored Links

 




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