Class Notes (839,147)
Canada (511,218)
CSCA20H3 (25)
Lecture

Object-oriented programming.docx

2 Pages
109 Views

Department
Computer Science
Course Code
CSCA20H3
Professor
Benj Hellie

This preview shows 80% of the first page. Sign up to view the full 2 pages of the document.
Description
Objectoriented programming What is typeA set of valueswith the operations that can be perfomed on those valueso Such as bool Values true falseOperation is and ornoto Such as int Values 232Op is addition and subtractionTo create your own typeDefine a class And then create the objects o They are instances of the class The languges programe we useis called object orientedSo first you need to create your own class and indicate it as a kind of objectsThen pass itto indicate its an empty class of data or operation and then start to build on them class Colorobject An RGB color with red green and blue components PassThenuse this name of the newly created classcolour as
More Less
Unlock Document

Only 80% of the first page are available for preview. Some parts have been intentionally blurred.

Unlock Document
You're Reading a Preview

Unlock to view full version

Unlock Document

Log In


OR

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