friend, I'll explain an object in the context of class in CPP programming.
after the definition of a class , you can define an object belonging to that class.
for example,
class student
{ int rollno;
char name[10];
void getdetails()
{cout<<"enter the roll number and name of the student";
cin>>rollno;
gets(name);
}
void showdata()
{cout<<"the name is"<<name<<"and the rollnumber is"
<<rollno;
}} sara;
here sara is an object belonging to class student.
object sara can use the function getdetails() to get values to the identifiers rollno and name.
" Class is a group of objects with similar characters ( eg: rollno , name) and behaviour ( ie., the member functions-getdetails and showdata)"
" An object is a an entity with certain characters and behaviour"
here object sara denotes a student sara. now, you can create another object rahul to the class student by typing the code- student rahul;
1) source program to object program 2)object program to object program output
SOURCE PROGRAM=A set of instructions of the high level language used to code problems to find its solution on a computer is referred as source program. OBJECT PROGRAM=The computer translates the source program into machine language program called object program by using an interpreter or compiler is called object program.
To use a program as a direct object, you simply perform an action on the program directly. For example, "I use the program to edit photos." The program is the direct object in this sentence because it is the recipient of the action of being used.
[object Object]
I ALSO WANT TO KNOW!what is meant by object program?PLEASE TELL ME THE ANSWER.
computer
No, that's what the compiler does.
Write a program for this process.
why does a program consists of more than one object file in c++
A program that translates source program into object code.
A compiler.
Free