Enter your Sign-on user name and password.

Forgot password?
  • Follow us on:
Loading video...

QuickNotes™  

Classes and Objects

  • Class: A class is a software package or template that describes the characteristics of similar objects.

  • A class consists of variables describing an entity and methods to operate on the variables.

  • 	class Person {
    	    private String first = "", last ="", MI ="" ,ID="";
    	    private  long id = 0;
    	    public void setName(String fName, String lName, String mi){
    	        first = fName ;
    	        last = lName ;
    	        MI = mi ;
    	    }
    	    public void setID(String Id){
    	        id = Id ;
    	    }
    	    public String getName() {
    	        return (last + ","+first + " " + MI);
    	    }
    	    public String toString(){
    	        String st = getName() + "
    ID : " + ID + "
    Birth Date : "+ bDay ;
    	        return st ;
    	    }
    	}  // end of class person definition 
    	
  • Object: Is an instance of a class, which is created at the run time.

  • 	Person p1; // object p1 of type person
    	
Mathematics:
Basic Math
Pre-Algebra
Algebra I
Algebra II
Geometry
Trigonometry
Pre-Calculus
Calculus I
Calculus II
Multivariable Calculus
Statistics
Chemistry:
General Chemistry
Organic Chemistry
Physics:
High School Physics
AP Physics B (Mechanics)
AP Physics C (Electricty & Magnetism)
Biology:
General Biology
AP Biology
(AP) Advanced Placement:
AP Calculus AB
AP Calculus BC
AP Biology
AP Chemistry
AP Physics B (Mechanics)
AP Physics C (Mechanics)
AP Physics C (Electricty & Magnetism)
AP Statistics
AP Computer Science: Java
Computer Science:
HTML Training
CSS Intro
Java
JavaScript
Introduction to PHP
Wordpress Training
XML Training