answersLogoWhite

0

What is object program?

User Avatar

Anonymous

12y ago
Updated: 11/27/2022

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;

User Avatar

Emmanuel Ward

Lvl 10
2y ago

What else can I help you with?

Related Questions

What are the two parts of compilation?

1) source program to object program 2)object program to object program output


Differences between source program and object program?

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.


How do you use a program as a direct object?

To use a program as a direct object, you simply perform an action on the program directly. For example, &quot;I use the program to edit photos.&quot; The program is the direct object in this sentence because it is the recipient of the action of being used.


When instructions are carried out a program runs a?

[object Object]


What is object program in computer programming?

I ALSO WANT TO KNOW!what is meant by object program?PLEASE TELL ME THE ANSWER.


Function to translate source program to object program?

computer


Does interpreter generate an object program from the source program?

No, that's what the compiler does.


use the word program as a direct object?

Write a program for this process.


Why program consists more than one object file in c?

why does a program consists of more than one object file in c++


What is the compiler that is used in C?

A program that translates source program into object code.


What is the program that reads and converts the entire program into object code called?

A compiler.


How much does the Blue cross silver sneakers program cost -?

Free