Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Definitions and Terms Be sure to highlight and memorize the following terms in p

ID: 3793477 • Letter: D

Question

Definitions and Terms

Be sure to highlight and memorize the following terms in preparation for your final exam. This will save you time and ensure that you are adequately prepared to successfully complete the exam.

Data Types (String, Char, Double, Float, Integers, etc.)

Variables (private, public, protected, global, local, etc.)

Instantiation

Methods (get, set, main, overloading, overriding)

Classes (abstract, private, public0

Objects

Constructors

Polymorphism

Inheritance

Encapsulation

Predefined Methods (toString(), getDate(),CharAt(), TOUPPER(), TOLOWER(), subString() etc.)

Programming Skills:

Create a Scanner object

Retrieve different types of input from the user (.nextLine(), .nextDouble(), .next(), etc.)

Extend a class

Define a new class

Create a sub-class from a super/base class

Create an instance variable

Create a class object

Call class methods

Override a Method

Create a While Loop and For Loop

Create an if-statement and Case Statement

Draw a line using 4 points, draw a circle or filled circle using diameter and coordinates

Explanation / Answer

data types : they are the types of data that will be used in the program telling the compiler how the data will be used will it be a float a int or a string it acually gives an idea of how much memory will be required to store the variable.

string contains or infact is a collection of numbers alphabets symbols it is a refernce type of data type (a class and infact we instantiate when we use string) and its size is not predefined but can store any number of characters internally storing them in character array

char is primitive data type used to store numbers alphabets symbols in an array with a predefined size

double and float they are used to store floating points numbers or the numbers with decimal point eg:9.089

where double has more precision than float

integers they are used to store integer type numbers eg:3,0,-4

variables: they store the values identified by uniques identifier name.

private variables are those variables which cannot be accessed by any function defined outside the class or not from anywhere other than class containing it

public variables can be accessed from anywhere and by any function inside or outside the class variable is defined in

protected variables can be accessed from the class that inherit the class in which variable is defined

global variables have a scope in whole program

local variables have a local scope ie restricted to the block it is defined in

instantiation: is to create an instance or create an object of the class which can be used to access the public functions variables of the class

methods: they are the functions related to a class or defined in a class

get method is for accessing and set is for giving the values to variables

main is the method from where the execution starts

overloading method are the methods which have same name but work differently for different number or types of arguments

overriding is making ones own implementation

classes they contain the method and variable

object are instance of classes

constructor are called as soon as an instance of the class is created it is of same name as class and usually used to give initial values to variables

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote