![]() |
| 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 : Macro is a Pre-prosser. The main advantage of using the macro is the speed of the execution of the program (if macro is not used in the program many times or if the program is small). The main disadvantage of the macro is it increase the size of the program ... Latest Answer : What are the advantages of using credit unions? ... Latest Answer : The advantages of using pointers are: 1: you can work with the address of the variable2: you can reference the variables in more different easiest ways....   e.g int a[10],*b;               b=&a;        if you want to refer ... Write a program which uses functions like strcmp(), strcpy()?
What are the advantages of using typedef in a program? Latest Answer : Inheritance offers the following advantages --Developement model closer to real life object model with hierarchical relationshipsReusability -- facility to use public methods of base class without rewriting the sameExtensibility -- extending the base ... Tags : Inheritance 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
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||