Topic 1.2 Objects_ CS 002-CS21S1 - Advanced Object-Oriented Programming.pdf

Full Transcript

 CS 002-CS21S1 - Advanced Object-Orie… Pages Topic 1.2 Objects Immersive Reader First Semester SY 2024-2025 (… Account Home Syllabus Topi...

 CS 002-CS21S1 - Advanced Object-Orie… Pages Topic 1.2 Objects Immersive Reader First Semester SY 2024-2025 (… Account Home Syllabus Topic 1.2 Objects Dashboard Modules Courses Discussions Module 1 - Topic 2: Objects Assignments Groups Quizzes What is an OBJECT? Chat An object is actually anything around us. In terms of program, we try to abstract and model these from actual Calendar BigBlueBu on real life objects. Furthermore, we are not limited into real life objects. We can actually model objects from 44 imaginary concepts. These models can represent mul ple items as a group. See the examples below. People Inbox Grades 2 Collabora ons Animal History Eagle Whale Deer Help Monster Centaur Dragon Werewolf Appliance Cooker - Stove and Oven Refrigerator Washing Machine In the examples above, we can call Animal, Monster and Appliance as models. A MODEL is an idea or concept that can be realized. It is able to represent a set of en es. The items per set can be called as instances. An INSTANCE is a realiza on of the given model. We can say that an eagle, a whale and a deer are instances of an animal. Note that Java is known to be an object oriented programming language. Therefore it mainly focuses on objects. So in terms of java, a program is a composed of mul ple interac ng objects. How do we start defining an object model? Discussion Please click the link to par cipate: Discussion 1.1. Object Example Home Page Back to Top Previous Next

Use Quizgecko on...
Browser
Browser