PROGRAMMING LANGUAGES
PROCEDURAL PROGRAMMING LANGUAGE
– C is an example
– Action-oriented
– Functions are units of programming
OBJECT-ORIENTED PROGRAMMING LANGUAGE
– Java is an example
– Object-oriented
– Classes are units of programming
• Functions, or methods, are encapsulated in classes
CLASS SCOPE
– Class instance variables and methods
– Members are accessible to all class methods
– Members can be referenced by name
USING THE THIS REFERENCE
• This reference allows an object to refers to itself.
STATIC CLASS MEMBERS
• static is a keyword, All class objects share same data