Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/default-filters.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/default-filters.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/class-wp-theme.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/class-wp-theme.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/class-wp-styles.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/class-wp-styles.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-request.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-request.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/block-supports/duotone.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/block-supports/duotone.php on line 1

Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768

Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768

Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768

Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768

Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768

Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768

Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768

Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768
{"id":72,"date":"2011-04-15T01:50:24","date_gmt":"2011-04-14T19:50:24","guid":{"rendered":"http:\/\/ujjalruet.wordpress.com\/?p=72"},"modified":"2011-04-15T01:50:24","modified_gmt":"2011-04-14T19:50:24","slug":"object-oriented-programming","status":"publish","type":"post","link":"https:\/\/blog.ujjal.net\/?p=72","title":{"rendered":"Object Oriented programming"},"content":{"rendered":"

\u0986\u09ae\u09b0\u09be \u099c\u09c0\u09ac\u099c\u0997\u09a4\u09c7\u09b0 \u09b6\u09cd\u09b0\u09c7\u09a3\u09c0\u09ac\u09bf\u09a8\u09cd\u09af\u09be\u09b8 \u099c\u09be\u09a8\u09bf\u0964 \u09af\u09c7\u09ae\u09a8 : \u09ae\u09be\u09a8\u09c1\u09b7\u09c7\u09b0 \u09ac\u09c8\u099c\u09cd\u099e\u09be\u09a8\u09bf\u0995 \u09a8\u09be\u09ae Homo sapiens<\/em> \u0964 Mammalia<\/em> \u09ac\u09be \u09b8\u09cd\u09a4\u09a8\u09cd\u09a8\u09aa\u09be\u09df\u09c0 \u09b6\u09cd\u09b0\u09c7\u09a3\u09c0\u09b0 \u098f\u0995\u099f\u09bf \u09aa\u09cd\u09b0\u09be\u09a3\u09c0 \u09ae\u09be\u09a8\u09c1\u09b7\u0964 \u098f \u09b6\u09cd\u09b0\u09c7\u09a3\u09c0\u09a4\u09c7 \u09b0\u09df\u09c7\u099b\u09c7 \u09ac\u09be\u09a8\u09b0 \u0993 \u09b6\u09bf\u09ae\u09aa\u09be\u09a8\u09cd\u099c\u09c0 \u09b8\u09b9 \u0986\u09b0\u0993 \u0985\u09a8\u09c7\u0995\u0964 \u09a4\u09be\u09b9\u09b2\u09c7,Mammalia class \u099f\u09bf\u09b0 \u09b8\u0995\u09b2 \u09ac\u09c8\u09b6\u09bf\u09b7\u09cd\u099f\u09cd\u09af \u09ae\u09be\u09a8\u09c1\u09b7,\u09ac\u09be\u09a8\u09b0 \u0993 \u09b6\u09bf\u09ae\u09aa\u09be\u09a8\u09cd\u099c\u09c0\u09b0 \u09b0\u09df\u09c7\u099b\u09c7\u0964 \u0985\u09b0\u09cd\u09a5\u09be\u09ce Mammalia Class \u098f\u09b0 Object \u09b9\u09b2 \u09ae\u09be\u09a8\u09c1\u09b7\/\u09ac\u09be\u09a8\u09b0\/\u09b6\u09bf\u09ae\u09aa\u09be\u09a8\u09cd\u099c\u09c0 \u0995\u09be\u09b0\u09a8 \u098f\u09b0\u09be \u09aa\u09cd\u09b0\u09a4\u09cd\u09af\u09c7\u0995\u09c7 Mammalia Class \u099f\u09bf\u09b0 Representative \u0964 \u098f\u099f\u09be\u0987 OOP \u098f\u09b0 \u09ae\u09cc\u09b2\u09bf\u0995 \u09a7\u09be\u09b0\u09a8\u09be\u0964<\/p>\n

C \u0993 C++ \u098f\u09b0 \u09ae\u09a7\u09cd\u09af\u09c7 \u09aa\u09be\u09b0\u09cd\u09a5\u0995\u09cd\u09af \u09b9\u09b2 C++ \u098f OOP(Object Oriented programming) \u098f\u09b0 \u09b8\u09c1\u09ac\u09bf\u09a7\u09be \u09b0\u09df\u09c7\u099b\u09c7 \u09af\u09be JAVA \u09a4\u09c7 \u09aa\u09c2\u09b0\u09cd\u09a3\u09a4\u09be \u09aa\u09c7\u09df\u09c7\u099b\u09c7 \u0964
\nObject Oriented programming \u0986\u09ae\u09be\u09a6\u09c7\u09b0 \u09af\u09c7 \u09b8\u09c1\u09ab\u09b2\u0997\u09c1\u09b2\u09cb \u09a6\u09bf\u09df\u09c7\u099b\u09c7 \u09b8\u09c7\u0997\u09c1\u09b2\u09cb \u09b9\u09b2\u0983
\n01. Data Encapsulation
\n02. Data Hiding
\n03. Polymorphism
\n\u098f\u0987 \u09a4\u09bf\u09a8\u099f\u09bf \u09b8\u09ae\u09cd\u09aa\u09b0\u09cd\u0995\u09c7 \u09aa\u09b0\u09ac\u09b0\u09cd\u09a4\u09c0\u09a4\u09c7 \u09ac\u09bf\u09b8\u09cd\u09a4\u09be\u09b0\u09bf\u09a4 \u09ac\u09b2\u09ac\u0964<\/p>\n

\u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae\u09bf\u0982 \u0995\u09b0\u09be\u09b0 \u09b8\u09ae\u09df \u0986\u09ae\u09b0\u09be \u09af\u0996\u09a8 \u0995\u09cb\u09a8 Class \u098f\u09b0 Declaration \u09a6\u09bf\u09ac \u09a4\u0996\u09a8 \u0990 Class \u098f\u09b0 \u09ac\u09b8\u09cd\u09a4\u09c1 \u09ac\u09be Object \u098f\u09b0 \u0995\u09bf \u0995\u09bf \u09ac\u09c8\u09b6\u09bf\u09b7\u09cd\u099f\u09cd\u09af \u09a5\u09be\u0995\u09ac\u09c7 \u09a4\u09be \u09a8\u09bf\u09b0\u09cd\u09a7\u09be\u09b0\u09a3 \u0995\u09b0\u09c7 \u09a6\u09c7\u09ac\u0964 \u09a6\u09c1\u0987 \u09a7\u09b0\u09a3\u09c7\u09b0 \u09ac\u09c8\u09b6\u09bf\u09b7\u09cd\u099f\u09cd\u09af \u09a5\u09be\u0995\u09a4\u09c7 \u09aa\u09be\u09b0\u09c7, \u09e7\u0964 Attribute \u09e8\u0964 Member function<\/p>\n

\u0989\u09a6\u09be\u09b9\u09b0\u09a8:
\n[code]
\nClass Car{ \/\/ Car is the user defined classname
\n\/\/these three are attribue of the class Car
\nChar carname[20];
\nint wheel;
\nchar color;<\/p>\n

\/\/these are the member functions
\nvoid getnameofcar(){
\ncin>>carname;
\n}
\nvoid getnumberofwheel(){
\ncin>>wheel;
\n}
\n}; \/\/a semicolon must be placed after the declarationof that class
\n[\/code]
\n\u09a4\u09be\u09b9\u09b2\u09c7 \u09a6\u09c7\u0996\u09be \u09af\u09be\u099a\u09cd\u099b\u09c7 \u09af\u09c7 Car \u09b6\u09cd\u09b0\u09c7\u09a3\u09c0\u09b0 \u09b8\u0995\u09b2 Object \u098f\u09b0 \u09a4\u09bf\u09a8\u099f\u09bf Attribute \u09a5\u09be\u0995\u09ac\u09c7 \u09af\u09a5\u09be\u0983 carname,wheel \u098f\u09ac\u0982 color \u0964 \u098f\u09ac\u0982 \u09e8 \u099f\u09bf function \u0986\u099b\u09c7\u0964 \u098f\u0987 \u09ac\u09c8\u09b6\u09bf\u09b7\u09cd\u099f\u09cd\u09af\u0997\u09c1\u09b2\u09cb \u09a4\u09bf\u09a8 \u09a7\u09b0\u09a8\u09c7\u09b0 \u09b9\u09a4\u09c7 \u09aa\u09be\u09b0\u09c7 \u09af\u09a5\u09be\u0983 public, private and protected.<\/p>\n

An example :
\n[code]
\n#include<stdio.h>
\n#include <iostream>
\nusing namespace std;<\/p>\n

Class Car{ \/\/ Car is the user defined classname
\n\/\/these three are attribue of the class Car
\nChar carname[20];
\nint wheel;
\nchar color;<\/p>\n

\/\/these are the member functions
\nvoid getnameofcar(){
\ncin>>carname;
\n}
\nvoid getnumberofwheel(){
\ncin>>wheel;
\n}
\n}; \/\/a semicolon must be placed after the declarationof that class<\/p>\n

int main(){<\/p>\n

Car obj1,obj2; \/\/ declaring of an object of Class Car<\/p>\n

obj1.getnameofcar(); \/\/ calling the function for obj1
\nobj1.getnumberofwheel();<\/p>\n

obj2.getnameofcar(); \/\/ calling the function for obj2
\nobj2.getnumberofwheel();<\/p>\n

cout<<ob1.carname<<endl;
\ncout<<ob1.wheel<<endl;<\/p>\n

cout<<ob2.carname<<endl;
\ncout<<ob2.wheel<<endl;<\/p>\n

return 0;
\n}[\/code]
\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<\/p>\n

Definitions:<\/strong>
\nA class<\/strong> is a template for multiple objects with similar features. Classes embody all the
\nfeatures of a particular set of objects.<\/p>\n

An instance<\/strong> of a class is another word for an actual object. If classes are an abstract
\nrepresentation of an object, an instance is its concrete representation.<\/p>\n

Object is the more general term, but both instances and objects are the concrete representation of a class.
\nIn fact, the terms instance and object are often used interchangeably in OOP language. An instance of a Car and a Car object are both the same thing.<\/p>\n","protected":false},"excerpt":{"rendered":"

\u0986\u09ae\u09b0\u09be \u099c\u09c0\u09ac\u099c\u0997\u09a4\u09c7\u09b0 \u09b6\u09cd\u09b0\u09c7\u09a3\u09c0\u09ac\u09bf\u09a8\u09cd\u09af\u09be\u09b8 \u099c\u09be\u09a8\u09bf\u0964 \u09af\u09c7\u09ae\u09a8 : \u09ae\u09be\u09a8\u09c1\u09b7\u09c7\u09b0 \u09ac\u09c8\u099c\u09cd\u099e\u09be\u09a8\u09bf\u0995 \u09a8\u09be\u09ae Homo sapiens \u0964 Mammalia \u09ac\u09be \u09b8\u09cd\u09a4\u09a8\u09cd\u09a8\u09aa\u09be\u09df\u09c0 \u09b6\u09cd\u09b0\u09c7\u09a3\u09c0\u09b0 \u098f\u0995\u099f\u09bf \u09aa\u09cd\u09b0\u09be\u09a3\u09c0 \u09ae\u09be\u09a8\u09c1\u09b7\u0964 \u098f \u09b6\u09cd\u09b0\u09c7\u09a3\u09c0\u09a4\u09c7 \u09b0\u09df\u09c7\u099b\u09c7 \u09ac\u09be\u09a8\u09b0 \u0993 \u09b6\u09bf\u09ae\u09aa\u09be\u09a8\u09cd\u099c\u09c0 \u09b8\u09b9 \u0986\u09b0\u0993 \u0985\u09a8\u09c7\u0995\u0964 \u09a4\u09be\u09b9\u09b2\u09c7,Mammalia class \u099f\u09bf\u09b0 \u09b8\u0995\u09b2 \u09ac\u09c8\u09b6\u09bf\u09b7\u09cd\u099f\u09cd\u09af \u09ae\u09be\u09a8\u09c1\u09b7,\u09ac\u09be\u09a8\u09b0 \u0993 \u09b6\u09bf\u09ae\u09aa\u09be\u09a8\u09cd\u099c\u09c0\u09b0 \u09b0\u09df\u09c7\u099b\u09c7\u0964 \u0985\u09b0\u09cd\u09a5\u09be\u09ce Mammalia Class \u098f\u09b0 Object \u09b9\u09b2 \u09ae\u09be\u09a8\u09c1\u09b7\/\u09ac\u09be\u09a8\u09b0\/\u09b6\u09bf\u09ae\u09aa\u09be\u09a8\u09cd\u099c\u09c0 \u0995\u09be\u09b0\u09a8 \u098f\u09b0\u09be \u09aa\u09cd\u09b0\u09a4\u09cd\u09af\u09c7\u0995\u09c7 Mammalia Class \u099f\u09bf\u09b0 Representative \u0964 \u098f\u099f\u09be\u0987 OOP \u098f\u09b0 … <\/p>\n