{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ClassesAndObjects2 - CIS3023 Programming Fundamentals for...

Info iconThis preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
CIS3023: Programming Fundamentals for CIS Majors II Summer 2010 Ganesh Viswanathan Classes and Objects (contd.) Course Lecture Slides 19 May 2010
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Classes and Objects Credits: Adapted from CIS-3023 lecture slides (Spring 2010) by Dr Seema Bandyopadhyay , University of Florida, Gainesville. 2
Background image of page 2
Object Instantiation Declaring and Creating object in two steps Declaring and Creating object in single step 3 // <ClassName> <objectRefVar>; Circle myCircle; myCircle = new Circle(); // <ClassName> <objectRefVar> = new <ClassName>(); Circle myCircle = new Circle();
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Trace Code 4 Circle myCircle = new Circle(5.0); Circle yourCircle = new Circle(); yourCircle.radius = 100; Declare myCircle no value myCircle animation
Background image of page 4