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 are functions in oop?
What is overloading in oops?
Whats oop mean?
Plese get me a perfect C++ program for railway/airway reservation with all details.
What is the difference between a mixin and inheritance?
What does it mean when someone says I oop?
Get me an image implementation program.
How do you achieve polymorphism?
What is abstraction in oops with example?
What do you mean by abstraction?
What is debug class?what is trace class? What differences are between them? With examples.
Which language is not a true object oriented programming language?
What are constructors in oop?
What are different oops concepts?
Prepare me a program for the animation of train