Latest Answer : object isthe physical realisation of a class ...
Latest Answer : Transient object : 1> emporary Object 2> Can not be serilised (ie. can not save to secodary ...
Latest Answer : cc -o x.o x.c creats a object file ...
Latest Answer : Object is an instance of class ...
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 : An object is created when a class is instantiated. This is the time when memory is allocated to the object and the class constructor is called to initialize the data members. ...
Latest Answer : Procedural languages enforce sequential processing of instructions. Object oriented languages may implement event driven processing.Procedural languages store all data as global while OOPs languages support data encapsulation -- all related data is stored ...
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
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 ...
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. ...