Posts

Showing posts from January, 2025

chapter 1 (features of oops: part1)

Oops is a programming language style that is focused on object. Important features of oops . 1.Abstraction . 2.Encapsulation. 3.Inheritance. 4. Polymorphism. Abstraction Data abstraction refers to providing only essential information to outside world and hiding their backgrount details . Real life example of a TV ,which you can turn on and off ,change the channel ,adjust the volume and external component such as a speaker ,VCRs and DVD players ,but you do not know its internal details ,that is ,how it receives signals over the air or through a cable, how it them, and finally displays them on the screen. In C++, classes provides great level of data abstraction.They provide sufficient public methods to the outsideworld to play with the functionality of the object and tomanipulate object data, i.e., state without actually knowing how class has been implemented internally. In C++, we use classes to define our own abstract data types (ADT). You can use the cout object of class ostream to st...