Posts

Showing posts from June, 2020

Virtual Destructors In C++

Virtual Destructors In C++                             Base class destructor should always be virtual.The reason is if you want to delete the object of derived class it will not deleted.Lets take an example: Forexample           class A{                          public:                           ~A(){                                    cout<<"Base Class"<<endl;                                     }                            };           class B :public A{                          public:                           ~B(){                                    cout<<"Derived Class"<<endl;                                     }                             };          int main(){                               A *ptr=new B;                               delete ptr;                               return 0;                               } Output                     Base Class                              From above the example you can see that the base c

Multiple Inheritance Problem In C++

Image
Ambiguity in Multiple Inheritance                             Suppose we have 3 classes first class is A and second class is B and the last class is C which is derived from A and B.In A class we have one method void display() same for class B. Code                                          class A                                         {                                             public :                                                             void display(){count<<"This Is Class A "<<endl;}                                          };                                           class B                                 {                                     public :                                                  void display(){count<<"This Is Class B "<<endl;}                                  };                                  class C :public A, public B                                 {                                  }; Main Method     

How to access private data members of a class in c++

Image
Access Private data members of a class                              Many people ask the same question can we access the private data member of a class the answer is yes you can access the private data member of a class and also you change the value of that data now you will say how: just remember that c++ supports pointers which is very powerful concept and it is always diffcult to manage it in large project.                                        We will use the pointer to access the private data member simple make a class x and having two private data member of type int and one public method void set() just set the variable to anything.                                                                 Now create the main()  method and make object of  x  obj then make pointer variable int *p after that we will do typecasting like that p=<int*>&obj now the last step is print the *p and you will see the value of both private data members.                                        I

Programming language in C++

Image
1.Programming language in C++ C++ is one among the world's hottest programming languages . C++ are often found in today's operating systems , Graphical User Interfaces , and embedded systems . C++ is an object-oriented programing language which provides a transparent structure to programs and allows code to be reused, lowering development costs.The general purpose programming language of c++ is to use the class shape which was not in c language.Which is created by bjarne stroustrup as an extension of c language. 2.Object Oriented Programming Object Oriented programming in c++ as the name suggests, it uses objects in programming. Object-oriented programming aims to implement real-world entities like inheritance, hiding, polymorphism, etc in programming. The main aim of OOP ( Object-oriented programming) is to bind together the info and therefore the functions that operate them in order that no other part of the code can access this data except that function

Software Project Ideas.

Welcome to our blog today we will give you information about software projects. 1.Website ideas                        1.Multi-Vendor E-commerce website.              2.Learning Website.              3.Informative website.              4.Gaming website like Gamzer.              5.Solution of question website like stackoverflow.              6.Movies website.              7.Api provider services website.              8.Learning website like w3school.              9.Trending news website.              10. Color picker website. 2.Mobile apps ideas              1.Ludo Game like ludo star.            2.Any app like Youtube.            3.Informative app.            4.3D gaming app like pubg,hayday.            5.Video calling app like skype.            6.Movies app watch upcoming movies.            7.Social app like facebook,instagram.            8.Online class like in covid-19.            9.App like Easypaisa app.            10. App of e-commerce website. For more information visit https://w

Database

Image
Firebase Database:-                                                                                         Firebase is developed by google.It gives best services to use for free. The two factor verification is free from firebase. It gives 10k verification code free per month.If you Third party services it will be very costly.Also you can use real-time database which is firestore.  Firebase hosting is also free.Both static and dynamic. Mongodb:-                              Mongodb is document oriented database.It helps in large scale projects like e-commerence.It is more faster than firebase but at the same time it does not give free services like firebase.It balanced the load of data.

Software engineer

Image
Life Of Software Engineers 1:- They code for more than 9 hrs a day. 2:- They can't work in development(coding) more than 10years. 3:- They stuck in error more than 3 hrs. 4:- They feel pround when they complete a task. 5:- Sometimes they enjoy doing coding. 6:- But note that they give more than their time to complete the work.