Answer Posted / priya
OBJECT:
*OBJECT IS A RUN TIME ENTITY.
*IT CAN ACCESS THE CLASS MEMBERS.
*WE CAN CREATE AN OBJECT BY THE CLASS NAME.
EXAMPLE:
class myclass
{
public:
int no;
void getdata();
void putdata();
void getdata()
{
cin>>no;
}
void putdata()
{
cout<<"NO:";
}
};
void main()
{
myclass.obj1;[-----------> object was created by the class name]
obj1.getdata();
obj1.putdata();
getch();
}
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is inheritance in oop?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What are two types of polymorphism?
What do you mean by Encapsulation?
What are oops functions?
What is purpose of inheritance?
What makes a language oop?
Can we define a class within the interface?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
Is html an oop?
How to call a non virtual function in the derived class by using base class pointer
What polymorphism means?
Can an interface inherit a class?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
What is the full form of oops?