![]() |
| 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 I have just started doing OOP design. My experience has been in RDBMS. Where we work with tables, relation between them defined using foreign keys. Can anyone pl. help in designing classes for a simple case here. There are two tables (states, districts). Districts contains stateId as foreign key. So state to district 1-many relation is there. Such things how do we design in oops. Thanx in advance Read Answers (2) | Asked by : sudha Latest Answer : OOPs is closer to real life representation of the objects which we want to program.Hierarchical relationships can be represented using inheriatnce. Data can be divided as public and private -- also we can provide interface for entering and validating ... Read Answers (2) | Asked by : ritu Tags : OOPS 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 Can the function by which we get values for object strictly follow the data hiding rule in oops?if no,why?e.g void student ::getdata() { coutname; - - - - }void main(){ student s; s.getdata(); getch();} View Question | Asked by : anshul sood Tags : OOPS Latest Answer : Public Class MySample Public Shared Sub Main() Console.WriteLine("Hello World") End SubEnd ClassForm the above example, it is well understood ... Tags : OOPS Latest Answer : OOPs is Object Oriented Programming.The great thing about OOPs is that is all about classes and objects which can easily correlated with real life scenarios.Class is the general thing and object is the specilisation of general thingFor example if ... Read Answers (1) | Asked by : kalps Tags : OOPS Latest Answer : ENCAPSULATION: It is the data binds together code and the data it manipulates and keeps them safe from outside interference and misuse. When data and code are linked together in this fashion, an object is created. In other words an object is the device ... Read Answers (2) | Asked by : Raj Tags : OOPS Latest Answer : Well! the main advantage of OOPs is that it uses the concept of classes and object. which differs it totally from the POP. Due to uses of classes, it becomes more easy to divide a large program into smaller modules which can be treated separately.The ... Read Answers (6) | Asked by : Bir Bahadur Karki Tags : OOPS View Question | Asked by : S. Chinnadurai Tags : OOPS
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||