Posts

Showing posts from June, 2023

Object Oriented Programing (OOP)

Image
“Object-oriented programming is an approach that provides a way of modularizing programs by creating partitioned memory area for both data and functions that can be used as templates for creating copies of such modules on demand”. OOP defines classes to represent these things.  Classes can contain data and methods (internal functions).  Classes control access to internal data and methods. A public interface is used by external code when using the class.  This is a highly effective way of modeling real-world problems inside a computer program. FIGURE: The object-oriented paradigm. Features of the Object Oriented programming  Emphasis is on doing rather than procedure.  programs are divided into what are known as objects.  Data structures are designed such that they characterize the objects.  Functions that operate on the data of an object are tied together in the data structure.  Data is hidden and can’t be accessed by external functions.  Obj...

BCA Syllabus Topics

Image
SEMESTER-2 Course: BCA SUBJECT: OBJECT ORIENTED PROGRAMMING WITH C++   Syllabus : Unit-1 Overview of C++ : Overview of C++, Software crisis, Object oriented concepts of OOP. Advantages Benefits of OOP. C++ Environment, Program development environment, The language and the programming paradigm, Basic Usage/applications of OOP C++ language standards, Introduction to various C++ compilers, The C++ standard library, Prototype of main() function, io operator, manipulator comments, data type Creating and Compiling C++ Programs TURBO C++ IDE, Creating. compiling and running a C++ program using idea and through command line, Elements of C++ Language, Structure of a C++ program, C++ tokens, Type conversion in expressions. Decision Making and Branching Introduction. Sequential statements,  Mathematical Functions, Branching statements, looping Statements, Nested loops, Programming examples   Unit-II : Arrays and Functions- Arrays, The meaning of an array, Single-dimensional arrays,...

C++ syllabus (BCA 2nd Semester)

Image

Learning C++ Part 2 Example

Image
C++ Functions A function is a block of code which only runs when it is called. You can pass data, known as parameters, into a function. Functions are used to perform certain actions, and they are important for reusing code: Define the code once, and use it many times. Create a Function C++ provides some pre-defined functions, such as main(), which is used to execute code. But you can also create your own functions to perform certain actions. To create (often referred to as declare) a function, specify the name of the function, followed by parentheses (): Syntax void myFunction() {   // code to be executed } Example Explained myFunction() is the name of the function void means that the function does not have a return value. You will learn more about return values later in the next chapter inside the function (the body), add code that defines what the function should do Call a Function Declared functions are not executed immediately. They are "saved for later use", and will be ...