OOP's Theory Based Question & Answers 1.) Object : An Object is an instance variable of class. An Object is contain an references address. 2.) Class : A class is collection of methods and objects. 3.) Encapsulation : Wrapping of the data into single unit known as encapsulation. ex. class. 4.) Inheritance : Inheritance show relationship between two classes, main purposes of inheritance is code re-usability. There are three types of inheritance, Single, Multilevel, Hierarchical. 5.) Polymorphism : One to many form is refers to polymorphism. There are two types of polymorphism (i). Method Overloading : If a class have same methods, but different parameters known as method overloading. (ii). Method Overloading : If a child class have same method as declared in the parent, known as the method overloading. 6.) Abstraction : Abstraction is a process of hiding implementation details and show...
Comments
Post a Comment