Q1: What is OOPS?
A1: Object-Oriented Programming Systems is a programming paradigm using "objects". Objects are data structures consisting of data fields and methods together with their interactions. Programming techniques may include features such as data abstraction, encapsulation, messaging, modularity, polymorphism, and inheritance.
Q2:What is the major components of OOP?
A2: (1). Abstraction (2). Encapsulation (3). Polymorphism (4). Inheritance
Q3: "struct" vs "class" in C++.
A3: struct and class are same except that in case of structures, default scope is public, and in case of classes, default scope is private. There is a difference between C-struct and C++-struct, C-structure cannot have function whereas C++-structure can have functions(same as classes).
No comments:
Post a Comment