- 2071 Bhadra · 9 marks
Higher-level language versus OO approach
Short answer
Higher-level language approaches use procedures or scripts with library calls, making small tasks easy but reuse and maintenance limited. Object-oriented approaches encapsulate data and operations in classes, enabling reuse through inheritance and easier extension for large systems. Examples are scripting languages versus Java or Qt Multimedia.
Differentiate between higher programming language approaches and object oriented approaches.
A higher programming language approach adds multimedia support to a procedural or scripting language through library calls or language constructs. An object-oriented approach models media, devices and streams as classes and objects with attributes and methods.
| Point | Higher programming language approach | Object-oriented approach |
|---|---|---|
| Basic idea | Media handled by statements, procedures and functions | Media and devices are objects with methods |
| Structure | Procedure-oriented; data and operations separate | Data and operations bundled together (encapsulation) |
| Media abstraction | Media accessed through library calls or media-specific commands | Media classes hide format and device details |
| Reuse | Limited; copying or calling functions | High; through inheritance and class libraries |
| Extension | Needs changes to the language or library | Easy by creating subclasses (polymorphism) |
| Synchronisation | Language or script handles timing | Synchronisation represented as an object relationship |
| Complexity management | Becomes difficult for large systems | Better for large and complex systems |
| Maintenance | Harder as program grows | Easier because of modularity |
| Learning effort | Easier for small tasks | Requires knowledge of OO concepts |
| Examples | Lingo, ActionScript (early), scripting such as Authorware, Java Sound functions | Class frameworks in C++/Java, such as Java Media Framework, Qt Multimedia |
Example: in a higher language, one might write play("song.mp3"). In an OO approach, one creates Audio a = new Audio("song.mp3"); a.play();, where Audio is a subclass of Media and can be reused or extended for Video.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Libraries, system software, languages, OO · Multimedia System, chapter 7
- Compare procedural and object oriented programming · Object Oriented Programming, chapter 1
- Object oriented system and core concepts · Object Oriented Analysis and Design, chapter 1
- Algorithmic vs object-oriented decomposition · Object Oriented Analysis and Design, chapter 1
- Define programming language · Computer Programming, chapter 1 · asked 3×