Filter By
Filter Reset
Semester
Class Notes (1,032,456)
CA (592,067)
COSC (56)

Class Notes for Computer Science at University of British Columbia - Okanagan

24HR Notes

The notes and past exams you need. Available 24 hours after each lecture.

COSC 111 Lecture Notes - Lecture 25: Reference Class Problem, Instance Variable, Local Variable
24HR
Premium

Three Pillars of OOP - Encapsulation - Inheritance - Polymorphism (this will NOT be discussed in this course) THIS and SUPER THIS = reference than an object can use to refer to itself - a class member...

Computer Science
COSC 111
Abdallah Mohamed
COSC 111 Lecture 18: Lecture_18_Two_D_Arrays
24HR
Premium

one-dimensional arrays Anonymous Arrays public static int sum (int... a) { int sum = 0; for(int elem: a) sum += elem; return sum; }...

Computer Science
COSC 111
Abdallah Mohamed
COSC 111 Lecture Notes - Lecture 15: Local Variable, Linear Regression
24HR
Premium

Chapter 6: Methods modifier returnType methodName(list of parameters) { Method body; } Return vs. Void - If public static int incr(int a){}, then must return int; - If public static void incr(int a){}, doesnt return a valu...

Computer Science
COSC 111
Abdallah Mohamed
COSC 111 Lecture Notes - Lecture 24: Mutator Method
24HR
Premium

Three pillars of OOP I. Data Field Encapsulation = set data fields private - to protect value (i.e. prevent invalid value inputted) - make code easier to maintain Getter Method (a.k.a. accessor method) = access private dat...

Computer Science
COSC 111
Abdallah Mohamed
COSC 111 Lecture Notes - Lecture 8: Divisor
24HR
Premium

chapter 4 Converting Strings and numbers using parse method String s1= 5, s2 = 1.4; int n = Integer.parseInt(s1); this converts string 5 into the number 5 double m = Double.parseDouble(s2); this converts string1.4 into the...

Computer Science
COSC 111
Abdallah Mohamed
COSC 111 Lecture 23: OOP Recap
24HR
Premium

RECAP OOP == Object-Oriented Programming Objects == entity - Unique identity - Attributes - Behaviour (methods) Class == blueprint - Variables - Methods - Constructors ***Primitive and Reference Data Types Constructors == ...

Computer Science
COSC 111
Abdallah Mohamed
Computer Science
COSC 101
Chad Kohalyk
Computer Science
COSC 101
Chad Kohalyk

Log In


OR

Don't have an account?

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit