Preview

Oops

Good Essays
Open Document
Open Document
4782 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Oops
OOPS
1) What is abstraction? Explain how you have implemented this oops concept in your project?
Data abstraction is a process of representing the essential features without including implementation or background details.
Example is a bank account. People own savings accounts, checking accounts, credit accounts, investment accounts, but not generic bank accounts. In this case, a bank account can be an abstract class and all the other specialized bank accounts inherit from bank account.

2) What is encapsulation? Explain how you have implemented this oops concept in your project?
Encapsulation is a process of binding or wrapping the data and the codes that operates on the data into a single entity. This keeps the data safe from outside interface and misuse. One way to think about encapsulation is as a protective wrapper that prevents code and data from being arbitrarily accessed by other code defined outside the wrapper.
Encapsulation means hiding the internal details from other parts of the program. Encapsulation protects an implementation from unintended actions and inadvertent access. 3) Explain Polymorphism with an example on how you have implemented this in your project?

The meaning of Polymorphism is something like one name many forms. Polymorphism enables one entity to be used as as general category for different types of actions. The specific action is determined by the exact nature of the situation. The concept of polymorphism can be explained as "one interface, multiple methods".

4) What are the different types of polymorphism?
There are 2 types of Polymorphism
1. Compile time Polymorphism
2. Run Time Polymorphism
Compile time polymorphism is used for Function overloading
Runtime is used for implementing virtual functions overriding etc.

C#
5)What is an indexer?
Indexers are used for treating an object as an array. The indexers are usually known as smart arrays in C# community. Defining a C# indexer Is much like defining

You May Also Find These Documents Helpful

  • Satisfactory Essays

    The data access object (DAO) software program design pattern encapsulates use of data by concealing its difficulty from end users (University of Phoenix, 2005). This design pattern is a concept offering an abstract interface to a database or perseverance method, which it only provides a few specified functions excluding the visibility of the database particulars. The DAO includes a mapping from the software calls to its perseverance layer that isolates the general public interface of the DAO.…

    • 579 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Mat 540 Week 4 Paper

    • 1775 Words
    • 8 Pages

    Although the details can be quite complex, these details are the basic principles of object-oriented programming.…

    • 1775 Words
    • 8 Pages
    Powerful Essays
  • Good Essays

    Q5) Explain what are constructors and describe the use of the same with suitable examples.…

    • 559 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Nt1310 Unit 7 Answers

    • 1433 Words
    • 6 Pages

    Encryption is the process of transforming normal content, called plaintext, into unreadable gibberish, called ciphertext.…

    • 1433 Words
    • 6 Pages
    Powerful Essays
  • Powerful Essays

    Nt1310 Unit 7

    • 2452 Words
    • 10 Pages

    Encapsulation is an attribute of object design. It means that all of the object's data is contained and hidden in the object and access to it restricted to members of that class. A procedure is a type of encapsulation because it combines a series of computer instructions. Likewise, a complex data type, such as a record or class, relies on encapsulation.…

    • 2452 Words
    • 10 Pages
    Powerful Essays
  • Good Essays

    Psy300 Week 8

    • 760 Words
    • 4 Pages

    • Identify how you can encapsulate the data and processes you identified into an object-oriented design.…

    • 760 Words
    • 4 Pages
    Good Essays
  • Good Essays

    6. Data hiding, which means that critical data stored inside the object is protected from code outside the object is accomplished in Java by _____.…

    • 1518 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    It/210 Course Design

    • 2571 Words
    • 11 Pages

    Course Design Guide IT/210 Version 5 2 Week One: Introduction to Software Development Details Due Points Objectives 1.1 Describe the importance of using a structured, modular approach when creating program requirements, design, and code. 1.2 Identify how a computer processes and stores data. Course Preparation Read the course description and objectives.…

    • 2571 Words
    • 11 Pages
    Satisfactory Essays
  • Good Essays

    Pedigree lab

    • 1244 Words
    • 5 Pages

    When we started this lab the question (subject) we had to try and solve was ‘Which pattern of inheritance…

    • 1244 Words
    • 5 Pages
    Good Essays
  • Better Essays

    Archetypes - 2

    • 1167 Words
    • 5 Pages

    Cited: "Archetypes: Defined and Explained with Examples." hubpages. HubPages Inc., 23 Jun 2013. Web. 23 Sep 2012. <http://sandrabusby.hubpages.com/hub/Archetypes-Defined-and-Explained-with-Examples>.…

    • 1167 Words
    • 5 Pages
    Better Essays
  • Good Essays

    To help you understand this assignment further, the following description and examples may be useful.…

    • 719 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Each new class obtained through inheritance is known as derived class, and classes from which it derives are called base classes. In addition, each derived class can be used as a base class for a new derived class. And each derived class can be one or more base classes. In the latter case are referred to bypass manifold.…

    • 290 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Archetype: the original pattern or model of which all things of the same type are representations or copies…

    • 1727 Words
    • 7 Pages
    Good Essays
  • Good Essays

    CHAPTER11

    • 2591 Words
    • 18 Pages

    Which line of code will declare and create an instance of a new object variable called…

    • 2591 Words
    • 18 Pages
    Good Essays
  • Good Essays

    OOP Mwaks

    • 6094 Words
    • 30 Pages

    Variables, methods and constructors which are declared protected in a superclass can be accessed only by the subclasses in other package or any class within the package of the protected members' class. The protected access modifier cannot be applied to class and interfaces. Methods, fields can be declared protected, however methods and fields in a interface cannot be declared protected.…

    • 6094 Words
    • 30 Pages
    Good Essays

Related Topics