Functions: Objects Member Variables Methods Constructor Subroutine Type Instantiating

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

1.

Yes we have experience in any prior knowledge in game development

2.We have coding experience in c

3.We know only the half way of the game development . we want know the full details about
it.

functions

functions are "self contained" modules of code that accomplish a specific task.
Functions usually "take in" data, process it, and "return" a result. Once a function is written, it
can be used over and over and over again. Functions can be "called" from the inside of other
functions.

Classes

a class is an extensible program-code-template for creating objects, providing initial values for
state (member variables) and implementations of behavior (member functions
or methods).[1][2] In many languages, the class name is used as the name for the class (the
template itself), the name for the default constructor of the class (a subroutine that creates
objects), and as the type of objects generated by instantiating the class; these distinct concepts
are easily conflated

Implementation of class in stack:

ublic interface StackInterface<AnyType>


{
public void push(AnyType e);

public AnyType pop();

public AnyType peek();

public boolean isEmpty();


}

Implementation of class using queue

interface QueueInterface‹AnyType>
{
public boolean isEmpty();

public AnyType getFront();

public AnyType dequeue();


public void enqueue(AnyType e);

public void clear();


}

You might also like