chevron_left

Recent posts tagged oop

0 0 5 min.
Inspired by my parents coming to visit at the end of the week, I thought I’d write about how Perl classes can have “parents” as well, from which they inherit methods. Although it might seem on the surface as though [there’s more than one way to do it...
posted Nov 16 mjg 190 points
0 0 3 min.
At [my work](https://www.hostgator.com/), we extensively use the [Moose](https://metacpan.org/pod/Moose) object system to take care of what would ordinarily be very tedious boilerplate [object-oriented Perl code](https://perldoc.perl.org/perlobj). In...
posted Nov 9 mjg 190 points
0 0 2 min.
**Problem :** ========= *I am facing below error while trying to compile my code of C# in visual Studio 2015.* **“There is no argument given that corresponds to the required formal parameter”** Solution : ---------- *I had also faced a same issu...
posted Nov 9 Alecxe01 807 points
12 0 2 min.
Encapsulation is understanding an object and representing it in terms of its characteristics and ________? ====================================================== Let;s first understand what the Encapsulation is. Enсарsulаtiоn ------------- Enсарsu...
posted Sep 7 sakshi 955 points
12 0 3 min.
One of the main difference between C and C++ is that C++ supports OOP. Thus, learning about OOP is a must to master C++ programming. In this article, I will introduce about how to create a class in C++. So let’s begin !As mentioned above, C++ i...
posted Aug 24 hhh98hd 226 points
15 0 2 min.
As you know, one of the characteristic of OOP (Object -Oriented Programming) is Polymorphism, which describes the concept that objects of different types can be accessed through the same interface. In C++, this characteristic is represented by virtua...
posted Aug 18 hhh98hd 226 points
9 0 2 min.
One of the main difference between C and C++ is that C++ supports OOP. Thus, learning about OOP is a must to master C++ programming. In this article, I will introduce about access specifiers in C++.Generally, access specifiers define how attributes a...
posted Aug 16 hhh98hd 226 points
0 0 2 min.
Abstraction, Encapsulation, Polymorphism, and Inheritance are four building blocks of Object-Oriented programming and without these bases, you cannot achieve object-oriented functionality. In this article, we are going to discuss abstraction and enca...
posted Aug 7 Hafsa_Rao 390 points
6 0 0 min.
Encapsulation is one of the four fundamental concepts in object-oriented programming. It is the packing of data and functions/methods that act on data within a single object. By doing so, you can prevent access to the internal state of the object fro...
posted Aug 6 Kushan Gayantha 72 points
6 0 0 min.
In Python, a class is an object structure that contains different program elements. It is the main tool in Object Oriented Programming. But Python does not force programmers to use the class always in a program providing much freedom and flexibility....
posted Aug 6 Kushan Gayantha 72 points
3 0 0 min.
Main Differance is In functional programming, data can only be transformed by creating functions. In object-oriented programming, data is stored in objects. But OOP is very organized and easy to maintain & debugalthough there is no bett...
posted Aug 5 Kushan Gayantha 72 points
13 0 2 min.
Object Oriented Programming (OOP) is a programming model that helps to write program or design software around data or objects rather than functions and logic.. OOP is used to structure a software program into easy, reusable pieces of code bluep...
posted Jul 31 tanzimsiddiqee 21 points
3 0 2 min.
This is my way.See comments in code.#include <iostream> #include <string> #include <vector> #include <algorithm> using std::cout; using std::cin; using std::endl; using std::string; using std::vector; using std::istringstream...
posted Jul 30 raven 29 points
2 0 2 min.
Generally, in OOP, private and protected modifiers are used to hide class’ data members and internal functions from outside.Suppose that we have a class (Class A) with 3 members: a (public member), b (pri...
posted Jul 30 hhh98hd 226 points
18 1 8 min.
Last week’s arti­cle got a great response on Hacker News, and this par­tic­u­lar com­ment caught my eye:I think this is the real point about Perl code read­abil­i­ty: it gives you enough flex­i...
posted Jul 27 mjg 190 points
21 0 5 min.
The override key­word in Perl’s Moose object sys­tem is a nice bit of code-​as-​documentation since it explic­it­ly states that a giv­en method over­rides from its super­class. It also h...
posted Jul 13 mjg 190 points
8 0 1 min.
In Object Oriented Programming, interface are abstractions where we have no idea about the implementation except the declaration. To implement interfaces we have to derive it to a concrete class. However our ask is how many number of interfaces can b...
posted Jul 1 mhfaisal 275 points
7 0 4 min.
We have a huge codebase of over 700,000 lines of Perl spread across a couple dozen Git repositories at work. Sometimes refactoring is easy if the classes and methods involved are confined to one of those repos, but ...
posted Jun 29 mjg 190 points
20 2 1 min.
Class Diagram:A class diagram is a graph or structural diagram that shows what the objects in your system are consist of. It is a static structural diagram of classifier elements connected through different static relationships. A class diagram might...
posted Jun 5 Huzaifa-Glitch 41 points
6 0 1 min.
Methods  and properties can have access modifiers that dictates their accessibility .All in all there are 3 access modifiers. public, protected and private  public modifiers are default.  the method and property can be accessed from ev...
posted May 20 offonime 15 points