Skip to main content

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.

PointHigher programming language approachObject-oriented approach
Basic ideaMedia handled by statements, procedures and functionsMedia and devices are objects with methods
StructureProcedure-oriented; data and operations separateData and operations bundled together (encapsulation)
Media abstractionMedia accessed through library calls or media-specific commandsMedia classes hide format and device details
ReuseLimited; copying or calling functionsHigh; through inheritance and class libraries
ExtensionNeeds changes to the language or libraryEasy by creating subclasses (polymorphism)
SynchronisationLanguage or script handles timingSynchronisation represented as an object relationship
Complexity managementBecomes difficult for large systemsBetter for large and complex systems
MaintenanceHarder as program growsEasier because of modularity
Learning effortEasier for small tasksRequires knowledge of OO concepts
ExamplesLingo, ActionScript (early), scripting such as Authorware, Java Sound functionsClass 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)

All Multimedia System chapter 7 questions →