Posts

1). What is Oops? Ans: Object oriented programming organizes a program around its data, i.e., objects and a set of well defined interfaces to that data. An object-oriented program can be characterized as data controlling a access to code. 2). What is the difference between Procedural and Oops? Ans: a) In procedural program, programming logic follows certain procedures and the instructions are executed one after another. In Oops program, unit of program is object which is nothing but combination of data and code. b) In procedural program, data is exposed to the whole program whereas in Oops program, it is a accessible with in the object and which in turn assures the security of the code. 3). What are Encapsulation, Inheritance and Polymorphism? Ans: Encapsulation is the mechanism that binds together code data it manipulates and keeps both safe from outside interference and misuse. Inheritance is the process by which one objects acquire the properties of another obj