Discussion questions 3 total 200-250 word answers preferred

  

Discussion Question: Object-Oriented Programming

Choose a value for each of the variables X and Y.

In pseudocode, write the first line of the definition for a class X. The class should extend the class Y

Discuss your classmates’ class definitions. Given their class definitions, determine what the following pseudocode will display:

Declare X p

Set p = New Y ()

Call p.message()

Discussion Question: Algorithms and Object-Oriented Classes

Read the following pseudocode class definitions: 

Class Plant

Public Module message()

Display “I’m a plant.”

End Module

End Class

Class Tree Extends Plant

Public Module message()

Display “I’m a tree.”

End Module

End Class

Given these class definitions, determine what the following pseudocode will display:

Declare Plant p

Set p = New Tree()

Call p.message()

Discuss how algorithms address object-oriented classes and objects.

At least 150 words each 

DISCUSSION QUESTION 3 

Message expanded. Message read File Access Methods 

posted by A DONAHUE , Aug 08, 2018, 2:47 AM 

After a file has been created by opening, processing, and closing the file. Their are two different methods of accessing it. There is the direct access method, in which go directly to the specific data. Versus the sequential method of access, where you have to read up to the point of the data needed. I like the method of cds compared to tapes. 

In the reading some new information for me was the definition of the delimiter and the EOF tools. The delimiter is how programmers mark the end of every piece of code, while the EOF mark the end of a file. Another key fact that is continues to be of importance is closing out the files. 

What may happen if you fail to close a file?

(create a response 200 WORDS)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>