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
which feature are not hold visual basic of oop?
Explain the advantages of inheritance.
If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?
How to improve object oriented design skills?
What is the difference between abstraction and polymorphism?
What is inheritance write a program to show use of inheritance?
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).
Explain virtual inheritance?
What is polymorphism programming?
Write a program to sort the number with different sorts in one program ??
Why do we use encapsulation in oops?
what is graphics
What is an interface in oop?
Why do we need polymorphism in c#?
Can we create object of abstract class?