4/22/2017

Pure Virtual Function,Abstract Class

 

--------------------------------------

Pure virtual ==> no definition in class 

Class A{

public :

int x ;

void SetData(int a)=0 ; ///Pure virtual function

}

We can not create object of class A.

A objA; //error

All classes which have at least 1 pure virtual function is called Abstract Class

These classes object can not be created.

These classes need to be derived and pure virtual function need to be redefined.

Class D : public B{

void SetData(int a){           //redefine pure virtual function in derived class

x= a ;

///other stufff

}

D objD ; //valid and Ok

Programming Basic--2

 

Programming means creating software

Software can be categorized in many way ..for Simplicity we think it is as

System Software

–> Include all Operating system (OS) development , drivers and OS utility

-> various OS are present , some of famous OS are

Windows by Microsoft

MAC –> by Apple

Linux –> open source community

Android—> Open source for mainly Mobile platform , by google

Application Software

–> All the application where user directly interact.

There are many categorization of application software

starting from

  1. basic utility
  2. small application like calculator ,notepad etc
  3. Server Client based desktop application
  4. Cross platform application which works on multiple OS (on Windows ,linux etc)
  5. Cross Platform(Hardware) application which works on ARM and X86 baord etc
  6. Mobile applications
  7. Enterprise application
  8. Native application (C++)
  9. Hybrid application
  10. Web application
  11. DTV based application

and many more…

There are different language and frameworks are being used to develop different kind of applications .Based on the requirement & nature of application ,several type of  language , tools and IDE are being selected

Some of the language/Framework are

Programming –> C, C++ , Java ,

Scripting->     Java Script , pearl ,

Framework-> .NET , weWidget , node.js ,Ruby on Rails etc ,MFC

 

In next we will check the difference  between languages and framework as well difference in programming and scripting language