![]() |
| 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 : 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 ... 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 ... 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 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 View Question | Asked by : morrisson
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||